class_docstr: Lightweight NDArray class for DGL framework.
docstr: Return a copy of the ndarray in shared memory
  
  Parameters
  ----------
  name : str
      The name of the shared memory
  
  Returns
  -------
  NDArray
docstr_tok: ["Return","a","copy","of","the","ndarray","in","shared","memory","Parameters","--","--","--","--","--","name",":","str","The","name","of","the","shared","memory","Returns","--","--","--","-","NDArray"]
code: def shared_memory(self, name):
      """Return a copy of the ndarray in shared memory
  
      Parameters
      ----------
      name : str
          The name of the shared memory
  
      Returns
      -------
      NDArray
      """
      return empty_shared_mem(
          name, True, self.shape, self.dtype
      ).copyfrom(self)
  
imports: from __future__ import absolute_import
  import ctypes
  import functools
  import operator
  import numpy
  from .None import backend
  from ._ffi.function import _init_api
  from ._ffi.ndarray import _set_class_ndarray, context, DGLContext, DGLDataType, empty, empty_shared_mem, from_dlpack, NDArrayBase, numpyasarray
  from ._ffi.object import ObjectBase, register_object
label_desc: Use image node_id 2 for calling the NDArray obj's underlying member method code with example usage: obj.shared_memory(name) and returns: empty_shared_mem