code: def _read_numpy_data(path, in_memory=True):
      if in_memory:
          return torch.from_numpy(np.load(path))
      return torch.as_tensor(np.load(path, mmap_mode="r+"))
  
file_path: dgl/python/dgl/graphbolt/internal/utils.py
imports: import hashlib
  import json
  import os
  import shutil
  from typing import List, Union
  import numpy
  import pandas
  import torch
  from numpy.lib.format import read_array_header_1_0, read_array_header_2_0
label_desc: Use image node_id 2 for calling a global function with example usage: _read_numpy_data(path, in_memory) and returns: torch, torch