Human: What is a good Python function to check the array attribute? What is python function to check. Assistant: 
Here is a Python function to check the array attribute

import numpy as np

def check_array_attribute(obj):
    """
    Checks if the object is an array
    """
    return isinstance(obj, (list, np.ndarray))

# Enter the array
array = np.array([1,2,3])

# Calling the function
print((check_array_attribute(array)))

#Example Output
# True

#Remember to inspect code for bugs.