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 numbers
  import numpy
  from itertools import compress
  from scipy.sparse import issparse
  from sklearn.model_selection import ParameterGrid
  from sklearn.utils.validation import check_is_fitted
label_desc: Use image node_id 9 for calling a global function with example usage: _is_arraylike(x) and returns: unknown