code: def cuda_deserialize_cupy_ndarray(header, frames):
      (frame,) = frames
      arr = cupy.ndarray(
          shape=header["shape"],
          dtype=header["typestr"],
          memptr=cupy.asarray(frame).data,
          strides=header["strides"],
      )
      return arr
  
file_path: distributed/distributed/protocol/cupy.py
imports: from __future__ import annotations
  import copyreg
  import cupy
  from distributed.protocol.cuda import cuda_deserialize, cuda_serialize
  from distributed.protocol.serialize import dask_deserialize, dask_serialize, register_generic
label_desc: Use image node_id 2 for calling a global function with example usage: cuda_deserialize_cupy_ndarray(header, frames) and returns: arr