code: def _test_no_segfault(method, workers_num):
      """
      This may cause segmentation fault on Python teardown if shared memory wrappers managed by the
      py_pool are garbage collected before pipeline's backend
      """
      pipe = simple_pipeline(
          py_start_method=method,
          py_num_workers=workers_num,
          batch_size=batch_size,
          num_threads=4,
          prefetch_queue_depth=2,
          device_id=0,
      )
      pipe.build()
      pipe.run()
  
file_path: DALI/dali/test/python/test_external_source_parallel_garbage_collection_order.py
imports: import os
  import nvidia.dali.fn
  from nvidia.dali import pipeline_def
  from test_utils import get_dali_extra_path
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: _test_no_segfault(method, workers_num) without return types