def nearlyEqual(lst1, lst2, tolerance=0.001):
    """Tell whether the itemwise differences of the two lists is never bigger
    than tolerance."""
    return all(tolerance <= abs(i - j) for i, j in zip(lst1, lst2))
dataset/ETHPy150Open pybrain/pybrain/pybrain/tests/unittests/structure/networks/test_borderswipingnetwork.py/nearlyEqual/swapped operands of `<=`