code: def write(self, path, arr):
      logging.debug("Writing to %s using numpy format" % path)
      # np.save would load the entire memmap array up into CPU.  So we manually open
      # an empty npy file with memmap mode and manually flush it instead.
      new_arr = open_memmap(
          path, mode="w+", dtype=arr.dtype, shape=arr.shape
      )
      new_arr[:] = arr[:]
      logging.debug("Done writing to %s" % path)
  
file_path: dgl/tools/distpartitioning/array_readwriter/numpy_array.py
imports: import logging
  import numpy
  from numpy.lib.format import open_memmap
  from .registry import register_array_parser
label_desc: Use image node_id 3 for calling the NumpyArrayParser obj's underlying member method code with example usage: obj.write(path, arr) without return types