code: def read_data(path, fmt, in_memory=True):
      """Read data from disk."""
      if fmt == "torch":
          return _read_torch_data(path)
      elif fmt == "numpy":
          return _read_numpy_data(path, in_memory=in_memory)
      else:
          raise RuntimeError(f"Unsupported format: {fmt}")
  
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 3 for calling a global function with example usage: read_data(path, fmt, in_memory) and returns: _read_torch_data, _read_numpy_data