

def intersect_functions(*functions):
    functions = [fn for fn in functions if fn]
    if functions:

        def function(*args, **kwargs):
            val = True
            for fn in functions:
                val = fn(*args, **kwargs)
                if (not val):
                    return val
            return val
    else:
        function = None
    return fn

dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/couchexport/util.py intersect_functions/VarMisuse@91/100 `function`->`fn`