code: def __init__(
      self,
      max_shape=(10, 600, 800, 3),
      dtype_sample=np.uint8(0),
      start=0,
      stop=1e100,
      min_shape=None,
      seed=42,
  ):
      self.start = start
      self.stop = stop
      self.min_shape = min_shape
      self.max_shape = max_shape
      # As tf passes only tensors to the iterator, we pass a dummy value of which we take the type
      self.dtype = dtype_sample.dtype
      self.seed = seed
  
imports: import numpy
  import nvidia.dali
  import nvidia.dali.fn
  import nvidia.dali.plugin.tf
  import tensorflow
  from nose.tools import nottest
  from nvidia.dali import pipeline_def
  from test_utils import RandomlyShapedDataIterator
label_desc: Use image node_id 1 to create a new RandomSampleIterator object  with example: obj = RandomSampleIterator(max_shape, dtype_sample, start, stop, min_shape, seed)