code: def is_cupy(array):
      if "cupy" not in sys.modules:
          return False
      from cupy import ndarray
  
      return isinstance(array, ndarray)
  
imports: import sys
  import types
  import numpy
  import pandas
  from ..None import util
  from ..dimension import Dimension, asdim, dimension_name
  from ..element import Element
  from ..ndmapping import NdMapping, item_check, sorted_context
  from .grid import GridInterface
  from .interface import DataError, Interface
  from .util import dask_array_module, finite_range
label_desc: Use image node_id 1 for calling a global function with example usage: is_cupy(array) and returns: isinstance, False