code: def _after_rollback(session: Session) -> None:
      session._model_changes.clear()
  
file_path: flask-sqlalchemy/src/flask_sqlalchemy/track_modifications.py
imports: from __future__ import annotations
  import typing
  import sqlalchemy
  import sqlalchemy.event
  import sqlalchemy.orm
  from flask import current_app
  from flask import has_app_context
  from flask.signals import Namespace
label_desc: Use image node_id 5 for calling a global function with example usage: _after_rollback(session) without return types