code: def get_id(word_dict, word):
      """
      Return word id.
      """
      if word in word_dict.keys():
          return word_dict[word]
      return word_dict["<unk>"]
  
imports: import argparse
  import heapq
  import json
  import os
  import pickle
  import logging
  import numpy
  from tensorflow.train import init_from_checkpoint
  import graph
  from util import Timer
  import nni
  import data
  import evaluate
  from train_model import *
label_desc: Use image node_id 2 for calling a global function with example usage: get_id(word_dict, word) and returns: word_dict, word_dict