human
I wrote the below code

    if ((not hasattr(function, '__closure__')) or (not function.__closure__)):
        return function
    def _get_wrapped_function(function):
        if ((not hasattr(function, '__closure__')) or (not function.__closure__)):
            return None
        for closure in function.__closure__:
            func = closure.cell_contents
            deeper_func = _get_wrapped_function(func)
            if deeper_func:
                return deeper_func
            elif hasattr(closure.cell_contents, '__call__'):
                return closure.cell_contents
        return function
    return _get_wrapped_function(function)

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def get_wrapped_function(function):