code: def is_array(x):
      if isinstance(x, np.ndarray):
          return True
      elif isinstance(x, (sparse.SparseMatrix, sparse.SparseVector)):
          return True
      elif cp:  # pragma: no cover
          return isinstance(x, cp.ndarray)
      else:
          return False
  
file_path: mars/mars/tensor/array_utils.py
imports: from collections import defaultdict
  from contextlib import contextmanager
  import numpy
  from ..lib import sparse
  from ..lib.sparse.core import issparse, get_dense_module
  from ..utils import lazy_import
label_desc: Use image node_id 1 for calling a global function with example usage: is_array(x) and returns: True, True, isinstance, False