human
I wrote the below code

    def wrapper(f):
        @functools.wraps(f)
        def inner(*args, **kwargs):
            if (not CONF.cache.enabled):
                raise testcase.TestSkipped('Cache    globally    disabled.')
            for s in sections:
                conf_sec = getattr(CONF, s, None)
                if (conf_sec is not None):
                    if (not getattr(conf_sec, 'caching', True)):
                        raise testcase.TestSkipped(('%s    caching    disabled.' % s))
            return f(*args, **kwargs)
        return inner
    return wrapper

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

def skip_if_cache_disabled(*sections):