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