code: def __init__(self, device):
      super().__init__(
          BATCH_SIZE,
          NUM_WORKERS,
          DEVICE_ID,
          seed=SEED,
          prefetch_queue_depth=2,
      )
      self.input = ops.readers.File(file_root=images_dir)
      self.decode = ops.decoders.Image(
          device="mixed" if device == "gpu" else "cpu",
          output_type=types.RGB,
          hw_decoder_load=0,
      )
      self.resize = ops.Resize(
          resize_x=400, resize_y=400, device=device
      )
      self.flip = ops.Flip(device=device)
  
imports: import numpy
  import nvidia.dali.ops
  import nvidia.dali.types
  import os
  import random
  from functools import partial
  from nvidia.dali.pipeline import Pipeline
  from nvidia.dali import fn, pipeline_def
  from nvidia.dali.python_function_plugin import current_dali_stream
label_desc: Use image node_id 1 to create a new CommonPipeline object from inherited base classes: Pipeline with example: obj = CommonPipeline(device)