code: def _da_with_cupy_meta(attr, *args, meta=None, **kwargs):
      # Call the dask.array api with cupy-based meta
      meta = _cupy().empty(()) if meta is None else meta
      with config.set({"array.backend": "numpy"}):
          return getattr(da, attr)(*args, meta=meta, **kwargs)
  
file_path: dask/dask/array/cupy_entry_point.py
imports: from __future__ import annotations
  import dask.array
  from dask import config
  from dask.array.backends import ArrayBackendEntrypoint, register_cupy
  from dask.array.core import Array
  from dask.array.dispatch import to_cupy_dispatch
label_desc: Use image node_id 2 for calling a global function with example usage: _da_with_cupy_meta(attr) and returns: getattr