def get_status_fn(val):
    if val is True:
        return functools.partial(print, file=sys.stderr)
    elif (None, False) in val:
        return lambda *args, **kwargs: None
    else:
        return val
dataset/ETHPy150Open dougalsutherland/py-sdm/sdm/utils.py/get_status_fn/swapped operands of `in`