def METHOD_NAME(self):
    keypoints = self.data['keypoints']
    keypoints_visible = self.data['keypoints_visible']
    lifting_target = self.data['lifting_target']
    lifting_target_visible = self.data['lifting_target_visible']
    camera_param = self.data['camera_param']
    # test default settings
    codec = self.build_pose_lifting_label()
    encoded = codec.encode(keypoints, keypoints_visible, lifting_target,
                           lifting_target_visible, camera_param)
    self.assertEqual(encoded['keypoint_labels'].shape, (1, 17, 2))
    self.assertEqual(encoded['lifting_target_label'].shape, (17, 3))
    self.assertEqual(encoded['lifting_target_weights'].shape, (17, ))
    self.assertEqual(encoded['trajectory_weights'].shape, (17, ))
    self.assertEqual(encoded['target_root'].shape, (3, ))
    # test not zero-centering
    codec = self.build_pose_lifting_label(zero_center=False)
    encoded = codec.encode(keypoints, keypoints_visible, lifting_target,
                           lifting_target_visible, camera_param)
    self.assertEqual(encoded['keypoint_labels'].shape, (1, 17, 2))
    self.assertEqual(encoded['lifting_target_label'].shape, (17, 3))
    self.assertEqual(encoded['lifting_target_weights'].shape, (17, ))
    self.assertEqual(encoded['trajectory_weights'].shape, (17, ))
    # test removing root
    codec = self.build_pose_lifting_label(
        remove_root=True, save_index=True)
    encoded = codec.encode(keypoints, keypoints_visible, lifting_target,
                           lifting_target_visible, camera_param)
    self.assertTrue('target_root_removed' in encoded
                    and 'target_root_index' in encoded)
    self.assertEqual(encoded['lifting_target_weights'].shape, (16, ))
    self.assertEqual(encoded['keypoint_labels'].shape, (1, 17, 2))
    self.assertEqual(encoded['lifting_target_label'].shape, (16, 3))
    self.assertEqual(encoded['target_root'].shape, (3, ))
    # test normalizing camera
    codec = self.build_pose_lifting_label(normalize_camera=True)
    encoded = codec.encode(keypoints, keypoints_visible, lifting_target,
                           lifting_target_visible, camera_param)
    self.assertTrue('camera_param' in encoded)
    scale = np.array(0.5 * camera_param['w'], dtype=np.float32)
    self.assertTrue(
        np.allclose(
            camera_param['f'] / scale,
            encoded['camera_param']['f'],
            atol=4.))