<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_unsaved_changes(self):
 """ True when any of the visible buffers in this tab has unsaved changes. """

        for w in self.windows():
            if w.editor_buffer.has_unsaved_changes:
                return True
        return False