code: def load_vocab(vocab_file: str):
      """Loads a vocabulary file into a dictionary."""
      vocab = {}
      with open(vocab_file, "r", encoding="utf-8") as reader:
          tokens = reader.readlines()
      for index, token in enumerate(tokens):
          token = token.rstrip("\n").split("\t")[0]
          vocab[token] = index
      return vocab
  
file_path: PaddleHub/paddlehub/text/utils.py
imports: import unicodedata
  from collections import OrderedDict
label_desc: Use image node_id 1 for calling a global function with example usage: load_vocab(vocab_file) and returns: vocab