code: def get_iterable_generator(
      dtype, iter_limit=1000, batch_size=None, dense=True
  ):
      def generator():
          iterator = iter(
              get_iterable(dtype, iter_limit, batch_size, dense)
          )
          for example in iterator:
              yield example
  
      return generator
  
imports: import copy
  import numpy
  import nvidia.dali.plugin.tf
  import tensorflow
  from nvidia.dali import Pipeline, fn
  from test_utils import RandomlyShapedDataIterator
label_desc: Use image node_id 6 for calling a global function with example usage: get_iterable_generator(dtype, iter_limit, batch_size, dense) and returns: generator