code: def chunk_numpy_array(arr, fmt_meta, chunk_sizes, path_fmt):
      paths = []
      offset = 0
  
      for j, n in enumerate(chunk_sizes):
          path = os.path.abspath(path_fmt % j)
          arr_chunk = arr[offset : offset + n]
          logging.info("Chunking %d-%d" % (offset, offset + n))
          array_readwriter.get_array_parser(**fmt_meta).write(
              path, arr_chunk
          )
          offset += n
          paths.append(path)
  
      return paths
  
file_path: dgl/tools/chunk_graph.py
imports: import json
  import logging
  import os
  import pathlib
  from contextlib import contextmanager
  import dgl
  import torch
  from distpartitioning import array_readwriter
  from files import setdir
label_desc: Use image node_id 1 for calling a global function with example usage: chunk_numpy_array(arr, fmt_meta, chunk_sizes, path_fmt) and returns: paths