def METHOD_NAME():
    a = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9])
    b = sct_math.threshold(a.copy(), 3)
    assert (b == np.array([0, 0, 3, 4, 5, 6, 7, 8, 9])).all()
    c = sct_math.threshold(a.copy(), uthr=5)
    assert (c == np.array([1, 2, 3, 4, 5, 0, 0, 0, 0])).all()
    d = sct_math.threshold(a.copy(), lthr=3, uthr=5)
    assert (d == np.array([0, 0, 3, 4, 5, 0, 0, 0, 0])).all()
    e = sct_math.threshold(a.copy())
    assert (e == a).all()