def is_array(arr):
    if issubclass(type(arr), (numpy.ndarray, list)):
        return True
    return False
Returns True if the passed `arr` is a numpy array or a List.
dataset/ETHPy150Open enthought/mayavi/tvtk/array_handler.py/is_array