code: def test_dali_iterator_decorator_declarative():
      # given
      @data_iterator(output_map=["data"], reader_name="reader")
      def iterator_function():
          return iterator_function_def()
  
      iter = iterator_function(
          num_threads=4, device_id=0, batch_size=batch_size
      )
  
      # then
      run_and_assert_sequential_iterator(iter)
  
file_path: DALI/dali/test/python/jax_plugin/test_iterator_decorator.py
imports: from utils import iterator_function_def
  from nvidia.dali.plugin.jax import DALIGenericIterator, data_iterator
  from test_iterator import run_and_assert_sequential_iterator
  import inspect
label_desc: Use image node_id 2 for calling a global function with example usage: test_dali_iterator_decorator_declarative() and returns: iterator_function_def