code: def unbatch_dict(dict_):
      """Converts a dictionary of batch items to a batch/list of
      dictionary items.
      """
      batch_size = list(dict_.values())[0].shape[0]
      for i in range(batch_size):
          yield {key: value[i] for key, value in dict_.items()}
  
file_path: seq2seq/seq2seq/tasks/inference_task.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import abc
  import six
  import tensorflow
  from seq2seq import graph_utils
  from seq2seq.configurable import Configurable, abstractstaticmethod
label_desc: Use image node_id 1 for calling a global function with example usage: unbatch_dict(dict_) without return types