code: def get_pinned_array(data):
      """Return populated pinned memory.
  
      Parameters
      ----------
      data : cupy.ndarray or numpy.ndarray
          The array to be copied to shared buffer
      strides: int or None
      order: char
      """
  
      mem = cp.cuda.alloc_pinned_memory(data.nbytes)
      ret = np.frombuffer(mem, data.dtype, data.size).reshape(
          data.shape
      )
      ret[...] = data
  
      return ret
  
file_path: cusignal/python/cusignal/utils/arraytools.py
imports: import cupy
  import numpy
  from numba import cuda
label_desc: Use image node_id 3 for calling a global function with example usage: get_pinned_array(data) and returns: ret