code: def __init__(self, token_list):
      token_list = ["PAD"] + token_list
      self.vocab = {}
      for idx, token in enumerate(token_list):
          self.vocab[token] = idx
          self.vocab[idx] = token
  
imports: import tensorflow
  from tensorflow.contrib import rnn
  from tensorflow.python.ops import array_ops
  from ..models.basic_model import BasicModel
  import numpy
  import os
label_desc: Use image node_id 1 to create a new Vocabulary object  with example: obj = Vocabulary(token_list)