code: def load_np_from_txt(transE_vecfile, np_file, delimiter="\t"):
      data = []
      with open(transE_vecfile, "r") as rd:
          while True:
              line = rd.readline()
              if not line:
                  break
              data.append(
                  [float(a) for a in line.strip().split(delimiter)]
              )
      data = np.asarray(data, dtype=np.float32)
      with open(np_file, "wb") as f:
          np.save(f, data)
  
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 21 for calling a global function with example usage: load_np_from_txt(transE_vecfile, np_file, delimiter) without return types