def epsilonCheck(x, epsilon=1e-6):
    epsilon = abs(epsilon)
    return -epsilon < x < epsilon
Checks that x is in (-epsilon, epsilon).
dataset/ETHPy150Open pybrain/pybrain/pybrain/tests/helpers.py/epsilonCheck