code: def __init__(
      self, batch_size, device_id, file_root, annotations_file
  ):
      super().__init__(batch_size, 2, device_id, True, 12)
  
      # Reading COCO dataset
      self.input = ops.readers.COCO(
          file_root=file_root,
          annotations_file=annotations_file,
          shard_id=device_id,
          num_shards=1,
          ratio=True,
          ltrb=True,
      )
  
imports: import nvidia.dali.ops
  import os
  from nvidia.dali.pipeline import Pipeline
  from test_utils import get_dali_extra_path
  from nose_utils import assert_raises
label_desc: Use image node_id 1 to create a new DetectionPipeline object from inherited base classes: Pipeline with example: obj = DetectionPipeline(batch_size, device_id, file_root, annotations_file)