def METHOD_NAME(self):
    # test topdown training
    dataset = self.build_halpe_dataset(data_mode='topdown')
    self.assertEqual(dataset.data_mode, 'topdown')
    # filter two invalid instance due to num_keypoints = 0
    self.assertEqual(len(dataset), 12)
    self.check_data_info_keys(dataset[0], data_mode='topdown')
    # test topdown testing
    dataset = self.build_halpe_dataset(data_mode='topdown', test_mode=True)
    self.assertEqual(dataset.data_mode, 'topdown')
    # filter two invalid instance due to num_keypoints = 0
    self.assertEqual(len(dataset), 12)
    self.check_data_info_keys(dataset[0], data_mode='topdown')
    # test topdown testing with bbox file
    dataset = self.build_halpe_dataset(
        test_mode=True,
        bbox_file='tests/data/coco/test_coco_det_AP_H_56.json')
    self.assertEqual(dataset.data_mode, 'topdown')
    self.assertEqual(len(dataset), 118)
    self.check_data_info_keys(dataset[0])
    # test topdown testing with filter config
    dataset = self.build_halpe_dataset(
        test_mode=True,
        bbox_file='tests/data/coco/test_coco_det_AP_H_56.json',
        filter_cfg=dict(bbox_score_thr=0.3))
    self.assertEqual(dataset.data_mode, 'topdown')
    self.assertEqual(len(dataset), 33)