code: def get_id(word_dict, word):
      """
      Given word, return word id.
      """
      if word in word_dict.keys():
          return word_dict[word]
      return word_dict["<unk>"]
  
file_path: nni/examples/trials/ga_squad/data.py
imports: import csv
  import json
  from random import shuffle
  import numpy
label_desc: Use image node_id 10 for calling a global function with example usage: get_id(word_dict, word) and returns: word_dict, word_dict