code: def get_word_index(
      dest_dir="/tmp/.zoo/dataset", filename="imdb_word_index.pkl"
  ):
      """Retrieves the dictionary mapping word indices back to words.
  
      # Arguments
          dest_dir: where to cache the data (relative to `~/.zoo/dataset`).
          filename: dataset file name
  
      # Returns
          The word index dictionary.
      """
  
      path = base.maybe_download(
          filename,
          dest_dir,
          "https://s3.amazonaws.com/text-datasets/imdb_word_index.pkl",
      )
      f = open(path, "rb")
  
      data = cPickle.load(f, encoding="latin1")
  
      f.close()
      return data
  
imports: from bigdl.dataset import base
  import numpy
  from six.moves import cPickle
label_desc: Use image node_id 4 for calling a global function with example usage: get_word_index(dest_dir, filename) and returns: data