human
I wrote the below code

    def inner_func(self, *args, **kwargs):
        rv = f(self, *args, **kwargs)
        self._invalidate_cache()
        return rv
    return inner_func

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

def _invalidates_cache(f):