def check_if_zero(val):
    try:
        assert(np.abs(val) < 1e-9)
    except __HOLE__:
        print 'val = %s (needs to be equal to 0)' % val
        raise AssertionError
dataset/ETHPy150Open balajiln/mondrianforest/src/utils.py/check_if_zero