def persist_all(self):
        """Persists all changes made to entities known to the repository (present in the identity map)."""
        for entity in self._identity_map.values():
            if entity is not REMOVED:
                self.persist(entity)
Persists all changes made to entities known to the repository (present in the identity map).
src/seedwork/infrastructure/repository.py