code: def _to_shared_mem(arr, name):
      dlpack = F.zerocopy_to_dlpack(arr)
      dgl_tensor = nd.from_dlpack(dlpack)
      new_arr = empty_shared_mem(
          name, True, F.shape(arr), DTYPE_DICT[F.dtype(arr)]
      )
      dgl_tensor.copyto(new_arr)
      dlpack = new_arr.to_dlpack()
      return F.zerocopy_from_dlpack(dlpack)
  
imports: from ..None import backend, ndarray
  from .._ffi.ndarray import empty_shared_mem
label_desc: Use image node_id 3 for calling a global function with example usage: _to_shared_mem(arr, name) and returns: F