def METHOD_NAME(self):
    dataset = CityscapesDataset(
        ann_file=self.json_name,
        data_prefix=dict(img='imgs'),
        metainfo=self.metainfo,
        filter_cfg=dict(filter_empty_gt=True, min_size=32),
        pipeline=[])
    self.assertEqual(dataset.metainfo['classes'], self.metainfo['classes'])
    dataset.full_init()
    # filter images of small size and images
    # with all illegal annotations
    self.assertEqual(len(dataset), 1)
    self.assertEqual(len(dataset.load_data_list()), 4)
    dataset = CityscapesDataset(
        ann_file=self.json_name,
        data_prefix=dict(img='imgs'),
        metainfo=self.metainfo,
        test_mode=True,
        filter_cfg=dict(filter_empty_gt=True, min_size=32),
        pipeline=[])
    dataset.full_init()
    # filter images of small size and images
    # with all illegal annotations
    self.assertEqual(len(dataset), 4)
    self.assertEqual(len(dataset.load_data_list()), 4)