code: def get_gnid_range_map(node_tids):
      """
      Retrieves auxiliary dictionaries from the metadata json object
  
      Parameters:
      -----------
      node_tids: dictionary
          This dictionary contains the information about nodes for each node_type.
          Typically this information contains p-entries, where each entry has a file-name,
          starting and ending type_node_ids for the nodes in this file. Keys in this dictionary
          are the node_type and value is a list of lists. Each individual entry in this list has
          three items: file-name, starting type_nid and ending type_nid
  
      Returns:
      --------
      dictionary :
          a dictionary where keys are node_type names and values are global_nid range, which is a tuple.
  
      """
      ntypes_gid_range = {}
      offset = 0
      for k, v in node_tids.items():
          ntypes_gid_range[k] = [
              offset + int(v[0][0]),
              offset + int(v[-1][1]),
          ]
          offset += int(v[-1][1])
  
      return ntypes_gid_range
  
imports: import json
  import logging
  import os
  from itertools import cycle
  import constants
  import dgl
  import numpy
  import psutil
  import pyarrow
  import torch
  from dgl.distributed.partition import _dump_part_config
  from pyarrow import csv
label_desc: Use image node_id 8 for calling a global function with example usage: get_gnid_range_map(node_tids) and returns: ntypes_gid_range