code: def load_label(file_, name2index):
      index_label = []
      with open(file_, encoding="ISO-8859-1") as reader:
          for line in reader:
              tokens = line.strip().split(" ")
              name, label = tokens[0], int(tokens[1]) - 1
              if name in name2index:
                  index_label.append((name2index[name], str(label)))
  
      return index_label
  
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 3 for calling a global function with example usage: load_label(file_, name2index) and returns: index_label