code: def __init__(self, batch_size, num_threads, device_id, cache_size):
      super(HybridDecoderPipeline, self).__init__(
          batch_size, num_threads, device_id, seed=seed
      )
      self.input = ops.readers.File(file_root=image_dir)
      policy = None
      if cache_size > 0:
          policy = "threshold"
      self.decode = ops.decoders.Image(
          device="mixed",
          output_type=types.RGB,
          cache_debug=False,
          cache_size=cache_size,
          cache_type=policy,
          cache_batch_copy=True,
      )
  
file_path: DALI/dali/test/python/test_nvjpeg_cache.py
imports: from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import nvidia.dali.types
  from numpy.testing import assert_array_equal
  from test_utils import get_dali_extra_path
label_desc: Use image node_id 1 to create a new HybridDecoderPipeline object from inherited base classes: Pipeline with example: obj = HybridDecoderPipeline(batch_size, num_threads, device_id, cache_size)