code: def read_file(fname, ftype):
      """Read a file from disk
      Parameters:
      -----------
      fname : string
          specifying the absolute path to the file to read
      ftype : string
          supported formats are `numpy`, `parquet', `csv`
  
      Returns:
      --------
      numpy ndarray :
          file contents are returned as numpy array
      """
      reader_fmt_meta = {"name": ftype}
      array_readwriter.get_array_parser(**reader_fmt_meta).read(fname)
  
      return data
  
file_path: dgl/tools/verification_utils.py
imports: import json
  import os
  import constants
  import dgl
  import numpy
  import pyarrow
  import pyarrow.parquet
  import pytest
  import torch
  from dgl.data.utils import load_tensors
  from dgl.distributed.partition import _etype_str_to_tuple, _etype_tuple_to_str, _get_inner_edge_mask, _get_inner_node_mask, RESERVED_FIELD_DTYPE
  from distpartitioning.utils import get_idranges
label_desc: Use image node_id 1 for calling a global function with example usage: read_file(fname, ftype) and returns: data