def METHOD_NAME(
    self, actual, desired, rtol=1e-7, atol=0, equal_nan=True, msg=""
):
    """Raises an AssertionError if two objects are not equal up to desired
    tolerance.
    The test is equivalent to ``allclose(actual, desired, rtol, atol)`` (note
    that ``allclose`` has different default values). It compares the difference
    between `actual` and `desired` to ``atol + rtol * abs(desired)``.
    Parameters
    ----------
    actual : array_like
        Array obtained.
    desired : array_like
        Array desired.
    rtol : float, optional
        Relative tolerance.
    atol : float, optional
        Absolute tolerance.
    equal_nan : bool, optional.
        If True, NaNs will compare equal.
    msg : str, optional
        The error message to be printed in case of failure.
    Raises
    ------
    AssertionError
        If actual and desired are not equal up to specified precision.
    """
    np.testing.assert_allclose(
        actual=actual,
        desired=desired,
        rtol=rtol,
        atol=atol,
        equal_nan=equal_nan,
        err_msg=msg,
    )