human
I wrote the below code

    def outer(f):
        def wrap(*args, **kwargs):
            res = f(*args, **kwargs)
            if (res is not None):
                return res.decode(codec)
            return res
        return wrap
    return outer

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

def decode_return(codec='ascii'):