code: def load_triplet_data(head_f=None, rel_f=None, tail_f=None):
      if head_f is not None:
          head = []
          with open(head_f, "r") as f:
              id = f.readline()
              while len(id) > 0:
                  head.append(int(id))
                  id = f.readline()
          head = np.asarray(head)
      else:
          head = None
  
      if rel_f is not None:
          rel = []
          with open(rel_f, "r") as f:
              id = f.readline()
              while len(id) > 0:
                  rel.append(int(id))
                  id = f.readline()
          rel = np.asarray(rel)
      else:
          rel = None
  
      if tail_f is not None:
          tail = []
          with open(tail_f, "r") as f:
              id = f.readline()
              while len(id) > 0:
                  tail.append(int(id))
                  id = f.readline()
          tail = np.asarray(tail)
      else:
          tail = None
  
      return head, rel, tail
  
file_path: ogb/examples/lsc/wikikg90m/dgl-ke-ogb-lsc/python/dglke/utils.py
imports: import math
  import os
  import csv
  import argparse
  import json
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: load_triplet_data(head_f, rel_f, tail_f) and returns: head,  rel,  tail