human
I wrote the below code

    def outer_wrapper(f):
        '\n                                Outer    wrapper    that    decorates    the    given    function\n\n                                Arguments:\n                                                f    (func):    the    function    to    wrap\n                                '
        def inner_wrapper(*args, **kwargs):
            '\n                                                Wrapper    function    to    decorate    with.\n                                                '
            rcache = RequestCache.get_request_cache(namespace)
            rcache = (rcache.data if (namespace is None) else rcache)
            cache_key = func_call_cache_key(f, *args, **kwargs)
            if (cache_key in rcache):
                return rcache.get(cache_key)
            else:
                result = f(*args, **kwargs)
                rcache[cache_key] = result
                return result
        return inner_wrapper
    return outer_wrapper

What's a good function header?

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

def ns_request_cached(namespace=None):