def get_wrapped_func(func):
    if func.func_closure:
        for closure in func.func_closure:
            if isfunction(closure.cell_contents):
                return get_wrapped_func(closure.cell_contents)
        return func
    else:
        return func
NAME
dataset/ETHPy150Open openstack/compass-core/compass/db/api/utils.py/get_wrapped_func--crossover with--dataset/ETHPy150Open sassoftware/conary/conary/build/groupsetrecipe.py/GroupTupleSetMethods.union