def METHOD_NAME(self,
                      tensor: torch.Tensor,
                      value: float,
                      msg=None,
                      **kwarg):
    tensor = tensor.to(torch.float32)
    value = torch.tensor(value).float()
    try:
        torch.testing.assert_allclose(tensor, value, **kwarg)
    except AssertionError as e:
        self.fail(self._formatMessage(msg, str(e)))