code: def check_deserialization_with_params(batch_size, num_threads, shape):
      init_pipe = TestPipeline(
          batch_size=batch_size, num_threads=num_threads, shape=shape
      )
      serialized = init_pipe.serialize()
      ref_pipe = TestPipeline(
          batch_size=batch_size**2,
          num_threads=num_threads + 1,
          shape=shape,
      )
      test_pipe = Pipeline.deserialize(
          serialized,
          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 2 for calling a global function with example usage: check_deserialization_with_params(batch_size, num_threads, shape) without return types