code: def load_vocab(file_path):
      """
      load the given vocabulary
      """
      vocab = {}
      with io.open(file_path, "r", encoding="utf8") as fin:
          wid = 0
          for line in fin:
              data = line.strip().split("\t")
              if len(data) == 1:
                  wstr = ""
                  vocab[wstr] = int(data[0])
                  continue
              else:
                  wstr = data[0]
              vocab[wstr] = int(data[1])
      vocab["<unk>"] = len(vocab)
      return vocab
  
imports: import io
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: load_vocab(file_path) and returns: vocab