code: def is_ndarray(array):
      """Check if array is a ndarray."""
  
      return isinstance(array, numpy.ndarray) or hasattr(
          array, "__array__"
      )
  
file_path: rasterio/rasterio/dtypes.py
imports: import numpy
  from rasterio.env import GDALVersion
label_desc: Use image node_id 6 for calling a global function with example usage: is_ndarray(array) and returns: unknown