code: def __init__(self, batch_iterator, is_multioutput=False):
      self.src = batch_iterator
      self.is_multioutput = is_multioutput
      self.batch = ([],) if is_multioutput else []
      self.idx = 0
  
imports: import functools
  import numpy
  import nvidia.dali.fn
  import nvidia.dali.ops
  from nvidia.dali import Pipeline
  from nose_utils import assert_raises
  from test_utils import check_output
label_desc: Use image node_id 1 to create a new SampleIterator object  with example: obj = SampleIterator(batch_iterator, is_multioutput)