def METHOD_NAME(self, source, target):
    source_keypoints = keypoints[source]
    target_keypoints = keypoints[target]
    def create_ragged_group(ins):
        res = []
        for b, groups in zip(ins, [[1, 2], [0, 3]]):
            res.append(tf.RaggedTensor.from_row_lengths(b, groups))
        return tf.stack(res, axis=0)
    source_keypoints = create_ragged_group(source_keypoints)
    target_keypoints = create_ragged_group(target_keypoints)
    self.assertAllClose(
        keypoint.convert_format(
            source_keypoints, source=source, target=target, images=images
        ),
        target_keypoints,
    )