def assert_approx(x, y, e=1e-12):
    x = x.flatten()
    y = y.flatten()
    assert dsp.norm(x - y) < e * dsp.norm(x)
dataset/ETHPy150Open romanz/amodem/amodem/tests/test_equalizer.py/assert_approx/original