code: def __next__(self):
      if self.n <= self.stop:
          self.n += 1
          ret = self.random_iter.next()[0]
          return ret
      else:
          raise StopIteration
  
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 3 for calling the RandomSampleIterator obj's underlying member method code with example usage: obj.__next__() and returns: ret