code: def load_vocab(vocab_file: str) -> Dict[str, int]:
      r"""Loads a vocabulary file into a dictionary."""
      vocab: Dict[str, int] = collections.OrderedDict()
      with open(vocab_file, "r", encoding="utf-8") as reader:
          tokens = reader.readlines()
      for index, token in enumerate(tokens):
          token = token.rstrip("\n")
          vocab[token] = index
      return vocab
  
file_path: texar/texar/tf/data/tokenizers/bert_tokenizer_utils.py
imports: from typing import Dict, List, Optional
  import collections
  import unicodedata
label_desc: Use image node_id 1 for calling a global function with example usage: load_vocab(vocab_file) and returns: vocab