human
I wrote the below code

    def ddmain(outer_dec):
        def decwrapper(f):
            wrapped = inner_dec(outer_dec(f))
            def fwrapper(*args, **kwargs):
                return wrapped(*args, **kwargs)
            return fwrapper
        return decwrapper
    return ddmain

What's a good function header?

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

def second_order_decorator(inner_dec):