code: def load_vocab(vocab_file):
      vocab = []
      with codecs.getreader("utf-8")(
          tf.gfile.GFile(vocab_file, "rb")
      ) as f:
          vocab_size = 0
          for word in f:
              vocab_size += 1
              vocab.append(word.strip())
      return vocab, vocab_size
  
file_path: nlp-architect/examples/sparse_gnmt/gnmt/utils/vocab_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import codecs
  import os
  import tensorflow
  from tensorflow.python.ops import lookup_ops
  from .None import misc_utils
label_desc: Use image node_id 3 for calling a global function with example usage: load_vocab(vocab_file) and returns: vocab,  vocab_size