code: def __init__(
      self,
      args,
      batch_size,
      num_threads,
      device_id,
      rec_path,
      idx_path,
      shard_id,
      num_shards,
      crop_shape,
      nvjpeg_padding,
      prefetch_queue=3,
      resize_shp=None,
      output_layout=types.NCHW,
      pad_output=True,
      dtype="float16",
      dali_cpu=False,
  ):
      super(HybridValPipe, self).__init__(
          batch_size,
          num_threads,
          device_id,
          seed=12 + device_id,
          prefetch_queue_depth=prefetch_queue,
      )
      self.input = ops.MXNetReader(
          path=[rec_path],
          index_path=[idx_path],
          random_shuffle=False,
          shard_id=shard_id,
          num_shards=num_shards,
      )
  
      dali_device, decoder_device = get_device_names(dali_cpu)
      self.decode = ops.ImageDecoder(
          device=decoder_device,
          output_type=types.RGB,
          device_memory_padding=nvjpeg_padding,
          host_memory_padding=nvjpeg_padding,
      )
      self.resize = (
          ops.Resize(device=dali_device, resize_shorter=resize_shp)
          if resize_shp
          else None
      )
      self.cmnp = ops.CropMirrorNormalize(
          device="gpu",
          dtype=types.FLOAT16 if dtype == "float16" else types.FLOAT,
          output_layout=output_layout,
          crop=crop_shape,
          pad_output=pad_output,
          mean=args.rgb_mean,
          std=args.rgb_std,
      )
  
file_path: gluon-cv/scripts/classification/imagenet/dali.py
imports: import warnings
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import nvidia.dali.types
  from nvidia.dali.plugin.mxnet import DALIClassificationIterator, LastBatchPolicy
  import horovod.mxnet
label_desc: Use image node_id 1 to create a new HybridValPipe object from inherited base classes: Pipeline with example: obj = HybridValPipe(args, batch_size, num_threads, device_id, rec_path, idx_path, shard_id, num_shards, crop_shape, nvjpeg_padding, prefetch_queue, resize_shp, output_layout, pad_output, dtype, dali_cpu)