code: def remapping_index(args, src_dict, dst_dict, ori_file, new_file):
      """remapping_index"""
      ori_file = os.path.join(args.data_path, ori_file)
      new_file = os.path.join(args.output_path, new_file)
      with open(ori_file, "r") as reader, open(new_file, "w") as writer:
          for line in reader:
              slots = line.strip().split()
              s = int(slots[0])
              d = int(slots[1])
              new_s = src_dict[s]
              new_d = dst_dict[d]
              writer.write("%d\t%d\n" % (new_s, new_d))
  
file_path: PGL/legacy/examples/distribute_metapath2vec/data_process.py
imports: import sys
  import os
  import argparse
  import numpy
  from collections import OrderedDict
label_desc: Use image node_id 2 for calling a global function with example usage: remapping_index(args, src_dict, dst_dict, ori_file, new_file) without return types