code: def _is_arraylike(x):
      """Returns whether the input is array-like"""
      return (
          hasattr(x, "__len__")
          or hasattr(x, "shape")
          or hasattr(x, "__array__")
      )
  
imports: import warnings
  import numbers
  import numpy
  import scipy.sparse
  from ..externals import six
  from ..utils.fixes import signature
  from .deprecation import deprecated
  from ..exceptions import DataConversionWarning
  from ..exceptions import NonBLASDotWarning
  from ..exceptions import NotFittedError
label_desc: Use image node_id 4 for calling a global function with example usage: _is_arraylike(x) and returns: unknown