code: def parse_index_file(filename):
      index = []
      for line in open(filename):
          index.append(int(line.strip()))
      return index
  
file_path: graph4nlp/graph4nlp/pytorch/test/link_prediction/utils.py
imports: import pickle
  import networkx
  import numpy
  import scipy.sparse
  import torch
  from sklearn.metrics import average_precision_score, roc_auc_score
label_desc: Use image node_id 2 for calling a global function with example usage: parse_index_file(filename) and returns: index