code: def _test_pickle_passes_extra_dumps_loads_params_function(
      name, py_callback_pickler
  ):
      this_module = __import__(__name__)
      batch_size = 4
      # this_module.loads replaces callback_const_84 to callback_const_42
      # iff it receives special_loads_param
      parallel_pipeline = create_simple_pipeline(
          callback_const_84,
          (
              this_module,
              {"special_dumps_param": 42},
              {"special_loads_param": 84},
          ),
          batch_size=batch_size,
          py_num_workers=2,
          parallel=True,
      )
      serial_pipeline = create_simple_pipeline(
          callback_const_42, None, batch_size=batch_size, parallel=False
      )
      parallel_pipeline.build()
      serial_pipeline.build()
      for _ in range(3):
          _run_and_compare_outputs(
              batch_size, parallel_pipeline, serial_pipeline
          )
  
imports: import copyreg
  import numpy
  import nvidia.dali.fn
  import nvidia.dali.pickling
  import os
  from nvidia.dali import pipeline_def
  from pickle import PicklingError
  from nose_utils import raises
  from test_utils import get_dali_extra_path, restrict_python_version
label_desc: Use image node_id 30 for calling a global function with example usage: _test_pickle_passes_extra_dumps_loads_params_function(name, py_callback_pickler) without return types