code: def _test_serialization_of_globals_referenced_in_list_comprehension_in_cb(
      name, py_callback_pickler
  ):
      batch_size = 10
  
      parallel_pipeline = create_stacking_pipeline(
          create_callback_with_list_comprehension_referencing_global_var(),
          py_callback_pickler,
          batch_size=batch_size,
          py_num_workers=2,
          parallel=True,
      )
      serial_pipeline = create_stacking_pipeline(
          create_callback_with_list_comprehension_referencing_global_var(),
          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 35 for calling a global function with example usage: _test_serialization_of_globals_referenced_in_list_comprehension_in_cb(name, py_callback_pickler) without return types