human
I wrote the below code

    argspec = inspect.getargspec(f)
    @functools.wraps(f)
    def wrapper(self, context, *args, **kwargs):
        res = f(self, context, *args, **kwargs)
        try:
            instance = kwargs.get('instance')
            if (not instance):
                instance = args[(argspec.args.index('instance') - 2)]
        except ValueError:
            msg = _('instance    is    a    required    argument    to    use    @refresh_cache')
            raise Exception(msg)
        update_instance_cache_with_nw_info(self, context, instance, nw_info=res, conductor_api=kwargs.get('conductor_api'))
        return res
    return wrapper

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

def refresh_cache(f):