code: def _validate_results(params):
      """Main function to verify the graph partitions
  
      Parameters:
      -----------
      params : argparser object
          to access the command line arguments
      """
      logging.info(f"loading config files...")
      part_config = os.path.join(params.part_graph_dir, "metadata.json")
      part_schema = read_json(part_config)
      num_parts = part_schema["num_parts"]
  
      logging.info(f"loading config files of the original dataset...")
      graph_config = os.path.join(
          params.orig_dataset_dir, "metadata.json"
      )
      graph_schema = read_json(graph_config)
  
      logging.info(f"loading original ids from the dgl files...")
      orig_nids = read_orig_ids(
          params.part_graph_dir, "orig_nids.dgl", num_parts
      )
      orig_eids = read_orig_ids(
          params.part_graph_dir, "orig_eids.dgl", num_parts
      )
  
      logging.info(f"loading node to partition-ids from files... ")
      node_partids = get_node_partids(
          params.partitions_dir, graph_schema
      )
  
      logging.info(f"loading the original dataset...")
      g = _read_graph(graph_schema)
  
      logging.info(f"Beginning the verification process...")
      for i in range(num_parts):
          part_g, node_feats, edge_feats, gpb, _, _, _ = load_partition(
              part_config, i
          )
  
          verify_partition_data_types(part_g)
          verify_partition_formats(part_g, None)
          verify_graph_feats(
              g,
              gpb,
              part_g,
              node_feats,
              edge_feats,
              orig_nids,
              orig_eids,
          )
          verify_metadata_counts(
              part_schema, part_g, graph_schema, g, i
          )
          verify_node_partitionids(
              node_partids, part_g, g, gpb, graph_schema, orig_nids, i
          )
          logging.info(
              f"Verification of partitioned graph - {i}... SUCCESS !!!"
          )
  
file_path: dgl/tools/verify_partitions.py
imports: import argparse
  import logging
  import os
  import platform
  import constants
  import dgl
  import numpy
  import pyarrow
  import pyarrow.parquet
  import torch
  from dgl.data.utils import load_graphs, load_tensors
  from dgl.distributed.partition import _etype_str_to_tuple, _etype_tuple_to_str, _get_inner_edge_mask, _get_inner_node_mask, load_partition, RESERVED_FIELD_DTYPE
  from utils import get_idranges, read_json
  from verification_utils import get_node_partids, read_file, read_orig_ids, verify_graph_feats, verify_metadata_counts, verify_node_partitionids, verify_partition_data_types, verify_partition_formats
label_desc: Use image node_id 3 for calling a global function with example usage: _validate_results(params) without return types