def METHOD_NAME(self, metainfo: dict):
    expected_keys = dict(
        dataset_name=str,
        num_keypoints=int,
        keypoint_id2name=dict,
        keypoint_name2id=dict,
        upper_body_ids=list,
        lower_body_ids=list,
        flip_indices=list,
        flip_pairs=list,
        keypoint_colors=np.ndarray,
        num_skeleton_links=int,
        skeleton_links=list,
        skeleton_link_colors=np.ndarray,
        dataset_keypoint_weights=np.ndarray)
    for key, type_ in expected_keys.items():
        self.assertIn(key, metainfo)
        self.assertIsInstance(metainfo[key], type_, key)