def METHOD_NAME(self):
    """
    Check that the kernel can be initialized with beta.
    """
    beta = 0.5
    kernel = HammingIMQKernel(vocab_size=8)
    kernel.initialize(beta=beta)
    actual_value = torch.tensor(beta).view_as(kernel.beta)
    self.assertLess(torch.norm(kernel.beta - actual_value), 1e-5)