<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reset_dirty_flags(self):
 """Set all marked_dirty flags of the state machine to false."""

        for sm_id, sm in self.state_machines.items():
            sm.marked_dirty = False