code: def build_reverse_dictionary(word_to_id):
      """Given a dictionary that maps word to integer id.
      Returns a reverse dictionary that maps a id to word.
  
      Parameters
      ----------
      word_to_id : dictionary
          that maps word to ID.
  
      Returns
      --------
      dictionary
          A dictionary that maps IDs to words.
  
      """
      reverse_dictionary = dict(
          zip(word_to_id.values(), word_to_id.keys())
      )
      return reverse_dictionary
  
imports: import collections
  import os
  import random
  import re
  import subprocess
  import tempfile
  import warnings
  from collections import Counter
  import numpy
  import six
  import tensorflow
  from six.moves import urllib, xrange
  from tensorflow.python.platform import gfile
  import tensorlayer
  from tensorlayer.lazy_imports import LazyImport
label_desc: Use image node_id 12 for calling a global function with example usage: build_reverse_dictionary(word_to_id) and returns: reverse_dictionary