def _mock_kernel(x1, x2, history):
    """A kernel that memorizes its calls and encodes a fixed values for equal/unequal
    datapoint pairs."""
    history.append((x1, x2))

    if x1 == x2:
        return 1
    else:
        return 0.2