code: def remapping_id(file_, start_index, node_type, separator="\t"):
      """Mapp the ID and name of nodes to index."""
      node_types = []
      id2index = {}
      name2index = {}
      index = start_index
      with open(file_, encoding="ISO-8859-1") as reader:
          for line in reader:
              tokens = line.strip().split(separator)
              id2index[tokens[0]] = str(index)
              if len(tokens) == 2:
                  name2index[tokens[1]] = str(index)
              node_types.append((str(index), node_type))
              index += 1
  
      return id2index, name2index, node_types
  
file_path: PGL/examples/metapath2vec/data_preprocess.py
imports: import os
  import sys
  import tqdm
  import time
  import logging
  import random
  import argparse
  import numpy
  import pickle
  from pgl.utils.logger import log
  from utils.config import prepare_config, make_dir
label_desc: Use image node_id 1 for calling a global function with example usage: remapping_id(file_, start_index, node_type, separator) and returns: id2index,  name2index,  node_types