code: def test_coco_annotation_ids_unique(self):
      # test annotation ids not unique error
      metainfo = dict(classes=("car",), task_name="new_task")
      with self.assertRaisesRegex(AssertionError, "are not unique!"):
          CocoDataset(
              data_prefix=dict(img="imgs"),
              ann_file="tests/data/coco_wrong_format_sample.json",
              metainfo=metainfo,
              pipeline=[],
          )
  
imports: import unittest
  from mmdet.datasets import CocoDataset
label_desc: Use image node_id 3 for calling the TestCocoDataset obj's underlying member method code with example usage: obj.test_coco_annotation_ids_unique() without return types