code: def vocab_to_dicts(vocab):
      t2i = dict((t, i) for i, t in enumerate(vocab))
      i2t = dict((i, t) for i, t in enumerate(vocab))
      return t2i, i2t
  
file_path: neon/examples/nmt/data.py
imports: import os
  import numpy
  from collections import Counter
  import h5py
  import tarfile
  import gzip
  from neon.data.datasets import Dataset
  from neon.util.argparser import NeonArgparser
label_desc: Use image node_id 3 for calling a global function with example usage: vocab_to_dicts(vocab) and returns: t2i,  i2t