code: def load_vocab(vocab_file):
      """Loads a vocabulary file into a dictionary."""
      vocab = 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
  
imports: import collections
  import os
  import unicodedata
  from typing import List, Optional, Tuple
  from ...tokenization_utils import AddedToken, PreTrainedTokenizer, _is_control, _is_punctuation, _is_whitespace
  from ...utils import logging
label_desc: Use image node_id 1 for calling a global function with example usage: load_vocab(vocab_file) and returns: vocab