def METHOD_NAME(self,
                         data_info: dict,
                         data_mode: str = 'topdown'):
    if data_mode == 'topdown':
        expected_keys = dict(
            img_ids=list,
            img_paths=list,
            keypoints=np.ndarray,
            keypoints_3d=np.ndarray,
            scale=np.float32,
            center=np.ndarray,
            id=int)
    elif data_mode == 'bottomup':
        expected_keys = dict(
            img_ids=list,
            img_paths=list,
            keypoints=np.ndarray,
            keypoints_3d=np.ndarray,
            scale=list,
            center=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)