Consider: ``` python a = Session() b = Session() add_images_to(a) add_images_to(b) a.commit() b.rollback() ``` `a.commit` will commit `b`s images as well, because `_stored_images` is global state! It should be session-specific state.
Consider:
a.commitwill commitbs images as well, because_stored_imagesis global state! It should be session-specific state.