def METHOD_NAME(self):
    tmp_dir = tempfile.TemporaryDirectory()
    # create dummy data
    fake_json_file = osp.join(tmp_dir.name, 'fake_data.json')
    self._create_dummy_icdar_json(fake_json_file)
    # test initialization
    dataset = IcdarDataset(
        ann_file=fake_json_file,
        data_prefix=dict(img_path='imgs'),
        metainfo=self.metainfo,
        pipeline=[])
    self.assertEqual(dataset.metainfo['classes'], self.metainfo['classes'])
    dataset.full_init()
    self.assertEqual(len(dataset), 2)
    self.assertEqual(len(dataset.load_data_list()), 2)
    # test load_data_list
    anno = dataset.load_data_list()[0]
    self.assertEqual(len(anno['instances']), 4)
    self.assertTrue('ignore' in anno['instances'][0])
    self.assertTrue('bbox' in anno['instances'][0])
    self.assertEqual(anno['instances'][0]['bbox_label'], 0)
    self.assertTrue('polygon' in anno['instances'][0])
    tmp_dir.cleanup()