def METHOD_NAME(self, exact_kernel_fn, expected_values):
    """Identical vectors give exactly the identity kernel value."""
    x = tf.constant([0.5, -0.5, -0.5, 0.5])
    y = tf.constant([0.5, -0.5, -0.5, 0.5])
    exact_kernel = exact_kernel_fn(x, y)
    shape = exact_kernel.shape.as_list()
    self.assertLen(shape, 2)
    # x and y are identical and therefore K(x, y) will be precisely equal to
    # the identity value of the kernel.
    self.assertAllClose(expected_values, exact_kernel, atol=1e-6)