code: def DecoderPipeline():
      device = "mixed" if args.device == "gpu" else "cpu"
      jpegs, _ = fn.readers.file(file_root=args.images_dir)
      images = fn.decoders.image(
          jpegs,
          device=device,
          output_type=types.RGB,
          hw_decoder_load=args.hw_load,
          preallocate_width_hint=args.width_hint,
          preallocate_height_hint=args.height_hint,
      )
      return images
  
file_path: DALI/tools/hw_decoder_bench.py
imports: import argparse
  import nvidia.dali.fn
  import nvidia.dali.types
  import time
  from nvidia.dali.pipeline import pipeline_def
  import random
  import numpy
  import os
  from nvidia.dali.auto_aug import auto_augment
label_desc: Use image node_id 1 for calling a global function with example usage: DecoderPipeline() and returns: images