code: def test_obj365v1_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!"):
          Objects365V1Dataset(
              data_prefix=dict(img="imgs"),
              ann_file="tests/data/coco_wrong_format_sample.json",
              metainfo=metainfo,
              pipeline=[],
          )
  
file_path: mmdetection/tests/test_datasets/test_objects365.py
imports: import unittest
  from mmdet.datasets import Objects365V1Dataset, Objects365V2Dataset
label_desc: Use image node_id 3 for calling the TestObjects365V1Dataset obj's underlying member method code with example usage: obj.test_obj365v1_annotation_ids_unique() without return types