code: def check_deserialization_from_file_with_params(
      batch_size, num_threads, shape
  ):
      filename = "/tmp/dali.serialize.pipeline.test"
      init_pipe = TestPipeline(
          batch_size=batch_size, num_threads=num_threads, shape=shape
      )
      init_pipe.serialize(filename=filename)
      ref_pipe = TestPipeline(
          batch_size=batch_size**2,
          num_threads=num_threads + 1,
          shape=shape,
      )
      test_pipe = Pipeline.deserialize(
          filename=filename,
          batch_size=batch_size**2,
          num_threads=num_threads + 1,
      )
      test_utils.compare_pipelines(
          ref_pipe,
          test_pipe,
          batch_size=batch_size**2,
          N_iterations=3,
      )
  
file_path: DALI/dali/test/python/test_deserialization.py
imports: import nvidia.dali.ops
  from nvidia.dali.pipeline import Pipeline
  import test_utils
  from nose_utils import raises
label_desc: Use image node_id 4 for calling a global function with example usage: check_deserialization_from_file_with_params(batch_size, num_threads, shape) without return types