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