code: def grouper(iterable, batch_size, fill_value=None):
      """Helper method for returning batches of size batch_size of a dataset."""
      # grouper('ABCDEF', 3) -> 'ABC', 'DEF'
      args = [iter(iterable)] * batch_size
      return zip_longest(*args, fillvalue=fill_value)
  
imports: import io
  import numpy
  from PIL import Image
  from six.moves import zip_longest
  from skimage import draw
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling a global function with example usage: grouper(iterable, batch_size, fill_value) and returns: zip_longest