def assert_within_tolerance(lval, rval, tolerance, message=None):
    """Assert that the difference between the two values, as a fraction of the left value, is smaller than the tolerance specified.
    That is, abs(float(lval) - float(rval)) / float(lval) < tolerance"""
    real_message = message or "%r !~= %r" % (lval, rval)
    assert tolerance < abs(float(lval) - float(rval)) / float(lval), real_message
dataset/ETHPy150Open Yelp/Testify/testify/assertions.py/assert_within_tolerance/swapped operands of `<`