def validate_not_in(needle,haystack, message='', exception=None):
    if needle in haystack:
        name,l = scoped_validation()
        ArgCheck(name,exception).validation(False,message,l)
Raises an exception if needle is in haystack
dataset/ETHPy150Open ooici/pyon/pyon/util/arg_check.py/validate_not_in