code: def author_label(args, ori_id2pgl_id, ori_file, real_file, new_file):
      """author_label"""
      ori_file = os.path.join(args.data_path, ori_file)
      real_file = os.path.join(args.data_path, real_file)
      new_file = os.path.join(args.output_path, new_file)
      real_id2pgl_id = {}
      with open(ori_file, "r") as reader:
          for line in reader:
              slots = line.strip().split()
              ori_id = int(slots[0])
              real_id = int(slots[1])
              pgl_id = ori_id2pgl_id[ori_id]
              real_id2pgl_id[real_id] = pgl_id
  
      with open(real_file, "r") as reader, open(
          new_file, "w"
      ) as writer:
          for line in reader:
              slots = line.strip().split()
              real_id = int(slots[0])
              label = int(slots[1])
              pgl_id = real_id2pgl_id[real_id]
              writer.write("%d\t%d\n" % (pgl_id, label))
  
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 3 for calling a global function with example usage: author_label(args, ori_id2pgl_id, ori_file, real_file, new_file) without return types