code: def get_vocab_info(vocab_path):
      """Creates a `VocabInfo` instance that contains the vocabulary size and
        the special vocabulary for the given file.
  
      Args:
        vocab_path: Path to a vocabulary file with one word per line.
  
      Returns:
        A VocabInfo tuple.
      """
      with gfile.GFile(vocab_path) as file:
          vocab_size = sum(1 for _ in file)
      special_vocab = get_special_vocab(vocab_size)
      return VocabInfo(vocab_path, vocab_size, special_vocab)
  
file_path: seq2seq/seq2seq/data/vocab.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import tensorflow
  from tensorflow import gfile
label_desc: Use image node_id 1 for calling a global function with example usage: get_vocab_info(vocab_path) and returns: VocabInfo