code: def video_reader_pipeline_base(
      video_reader, batch_size, video_reader_params, resize_params={}
  ):
      pipeline = dali.pipeline.Pipeline(
          batch_size=batch_size, **pipeline_params
      )
      with pipeline:
          outputs = video_reader(**video_reader_params, **resize_params)
          if type(outputs) is list:
              outputs = outputs[0]
          pipeline.set_outputs(outputs)
      pipeline.build()
  
      return pipeline
  
file_path: DALI/dali/test/python/test_video_reader_resize.py
imports: import gc
  import numpy
  import nvidia.dali
  import nvidia.dali.types
label_desc: Use image node_id 1 for calling a global function with example usage: video_reader_pipeline_base(video_reader, batch_size, video_reader_params, resize_params) and returns: pipeline