def METHOD_NAME(self,
                         data_info: dict,
                         data_mode: str = 'topdown'):
    if data_mode == 'topdown':
        expected_keys = dict(
            img_id=int,
            img_path=str,
            bbox=np.ndarray,
            bbox_score=np.ndarray,
            keypoints=np.ndarray,
            keypoints_visible=np.ndarray,
            id=int)
    elif data_mode == 'bottomup':
        expected_keys = dict(
            img_id=int,
            img_path=str,
            bbox=np.ndarray,
            bbox_score=np.ndarray,
            keypoints=np.ndarray,
            keypoints_visible=np.ndarray,
            invalid_segs=list,
            id=list)
    else:
        raise ValueError(f'Invalid data_mode {data_mode}')
    for key, type_ in expected_keys.items():
        self.assertIn(key, data_info)
        self.assertIsInstance(data_info[key], type_, key)