code: def get_type_to_id(num_ntypes, num_etypes):
      ntypes = {f"n{i}": i for i in range(num_ntypes)}
      etypes = {}
      count = 0
      for n1 in range(num_ntypes):
          for n2 in range(n1, num_ntypes):
              if count >= num_etypes:
                  break
              etypes.update({f"n{n1}:e{count}:n{n2}": count})
              count += 1
      return ntypes, etypes
  
file_path: dgl/tests/python/pytorch/graphbolt/gb_test_utils.py
imports: import os
  import dgl
  import dgl.graphbolt
  import numpy
  import pandas
  import scipy.sparse
  import torch
label_desc: Use image node_id 3 for calling a global function with example usage: get_type_to_id(num_ntypes, num_etypes) and returns: ntypes,  etypes