code: def _test_pickle_by_value_decorator_on_global_function(
      name, py_callback_pickler
  ):
      # modify callback name so that an attempt to pickle by reference,
      # which is default Python behavior, would fail
      _simple_callback_by_value.__name__ = (
          _simple_callback_by_value.__qualname__
      ) = "simple_callback_by_value"
      _create_and_compare_simple_pipelines(
          _simple_callback_by_value,
          py_callback_pickler,
          batch_size=4,
          py_num_workers=2,
      )
  
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 27 for calling a global function with example usage: _test_pickle_by_value_decorator_on_global_function(name, py_callback_pickler) without return types