code: def generator():
      inputs = imgs_file_list
      targets = objs_info_list
  
      if len(inputs) != len(targets):
          raise AssertionError(
              "The length of inputs and targets should be equal"
          )
  
      for _input, _target in zip(inputs, targets):
          yield _input.encode("utf-8"), _target.encode("utf-8")
  
file_path: TensorLayer/examples/data_process/tutorial_tf_dataset_voc.py
imports: import json
  import multiprocessing
  import random
  import time
  import numpy
  import tensorflow
  import tensorlayer
label_desc: Use image node_id 1 for calling a global function with example usage: generator() without return types