def METHOD_NAME(test_case, value1, value2, name=""):
    is_equal = np.allclose(
        value1.detach().cpu().numpy(), value2.detach().numpy(), rtol=1e-03, atol=1e-03,
    )
    test_case.assertTrue(is_equal, f"{name} is not equal." if name else "")