def METHOD_NAME(self):
    # test topdown training
    dataset = self.build_coco_wholebody_hand_dataset(data_mode='topdown')
    self.assertEqual(dataset.data_mode, 'topdown')
    self.assertEqual(dataset.bbox_file, None)
    # filter invalid instances according to ``lefthand_valid``
    # and ``righthand_valid``
    self.assertEqual(len(dataset), 10)
    self.check_data_info_keys(dataset[0])
    # test topdown testing
    dataset = self.build_coco_wholebody_hand_dataset(
        data_mode='topdown', test_mode=True)
    self.assertEqual(dataset.data_mode, 'topdown')
    self.assertEqual(dataset.bbox_file, None)
    self.assertEqual(len(dataset), 10)
    self.check_data_info_keys(dataset[0])