code: def get_next(self):
      try:
          return next(self._iterator)
      except StopIteration:
          self._iterator.reset()
          return next(self._iterator)
  
file_path: DALI/docs/examples/frameworks/jax/pax_examples/dali_pax_input.py
imports: import os
  from praxis import base_input
  from nvidia.dali.plugin import jax
  from nvidia.dali import pipeline_def
  import nvidia.dali.fn
  import nvidia.dali.types
label_desc: Use image node_id 2 for calling the MnistDaliInput obj's underlying member method code with example usage: obj.get_next() and returns: next, next