human
I wrote the below code

    def flush_changes(self, *args, **kwargs):
        rval = non_const_func(self, *args, **kwargs)
        self._dirty = True
        self.write()
        return rval
    flush_changes.__name__ = non_const_func.__name__
    return flush_changes

What's a good function header?

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

def set_dirty_and_flush_changes(non_const_func):