code: def load_vocab(vocab_file):
      """Loads a vocabulary file into a dictionary."""
      vocab = collections.OrderedDict()
      index = 0
      with open(vocab_file, "r") as reader:
          while True:
              token = convert_to_unicode(reader.readline())
              if not token:
                  break
              token = token.strip()
              vocab[token] = index
              index += 1
      return vocab
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import os
  import re
  import unicodedata
  from functools import lru_cache
  import six
label_desc: Use image node_id 5 for calling a global function with example usage: load_vocab(vocab_file) and returns: vocab