code: def create_vocab_tables(src_vocab_file, tgt_vocab_file, share_vocab):
      """Creates vocab tables for src_vocab_file and tgt_vocab_file."""
      src_vocab_table = lookup_ops.index_table_from_file(
          src_vocab_file, default_value=UNK_ID
      )
      if share_vocab:
          tgt_vocab_table = src_vocab_table
      else:
          tgt_vocab_table = lookup_ops.index_table_from_file(
              tgt_vocab_file, default_value=UNK_ID
          )
      return src_vocab_table, tgt_vocab_table
  
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 5 for calling a global function with example usage: create_vocab_tables(src_vocab_file, tgt_vocab_file, share_vocab) and returns: src_vocab_table,  tgt_vocab_table