code: def load_instance_file(filename, target_triples, label=None):
      print(
          "load_instance_file: {0}  ".format(
              os.path.basename(filename)
          ),
          end=" ",
      )
      user_hist_keys = set()
      with open(filename, "r") as rd:
          while True:
              line = rd.readline()
              if not line:
                  break
              words = line.strip().split("%")
              tokens = words[0].split(" ")
              if label:
                  target_triples.append(
                      (words[1], tokens[2], label)
                  )  # (userid, itemid, label)
              else:
                  target_triples.append(
                      (words[1], tokens[2], tokens[0])
                  )  # (userid, itemid, label)
              user_hist_keys.add(tokens[1])
      print("done.")
      return user_hist_keys
  
imports: import codecs
  import pickle
  import time
  import os
  from datetime import datetime
  import random
  import numpy
  import math
  from multiprocessing import Process
  from utils.general import *
  from utils.data_helper import *
label_desc: Use image node_id 25 for calling a global function with example usage: load_instance_file(filename, target_triples, label) and returns: user_hist_keys