human
how do you check the array attribute.
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.