code: def load_vocab(file_path):
      """
      load the given vocabulary
      """
      vocab = {}
      with io.open(file_path, "r", encoding="utf8") as f:
          for i, line in enumerate(f):
              vocab[line.rstrip()] = int(i)
      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