def METHOD_NAME(q1, q2, *args, **kwargs):
    """Raise an assertion if two quaternions are not approximately equal.
    Note that quaternions are equal either if q1 == q2 or if q1 == -q2. See
    numpy.testing.assert_array_almost_equal for a more detailed documentation
    of the other parameters.
    Parameters
    ----------
    q1 : array-like, shape (4,)
        Unit quaternion to represent rotation: (w, x, y, z)
    q2 : array-like, shape (4,)
        Unit quaternion to represent rotation: (w, x, y, z)
    args : tuple
        Positional arguments that will be passed to
        `assert_array_almost_equal`
    kwargs : dict
        Positional arguments that will be passed to
        `assert_array_almost_equal`
    """
    try:
        assert_array_almost_equal(q1, q2, *args, **kwargs)
    except AssertionError:
        assert_array_almost_equal(q1, -q2, *args, **kwargs)