<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def mark_clean(self, entity):
 """ Marks the given entity as CLEAN. This is done when an entity is loaded fresh from the repository or after a commit. """

        state = EntityState.get_state(entity)
        state.status = ENTITY_STATUS.CLEAN
        state.is_persisted = True