code: def load_vocab(vocab_file):
      """Loads a vocabulary file into a dictionary."""
      if vocab_file == None:
          raise Exception("Vocab file not provided")
      if isinstance(vocab_file, str) or isinstance(vocab_file, bytes):
          vocab = collections.OrderedDict()
          index = 0
          with open(vocab_file, "r", encoding="utf-8") as reader:
              while True:
                  token = reader.readline()
                  if not token:
                      break
                  token = token.strip()
                  vocab[token] = index
                  index += 1
          return vocab
      else:
          return vocab_file
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import unicodedata
  import six
label_desc: Use image node_id 11 for calling a global function with example usage: load_vocab(vocab_file) and returns: vocab, vocab_file