I was using _app_ctx_stack.__ident_func__ for sqlalchemy scoped_session for accessing sqlalchemy models inside flask, without using flask sqlalchemy.
scoped_session(session_local, scopefunc=_app_ctx_stack.__ident_func__)
But currently after werkzeug 2.1 __ident_func__ is removed and there is no documentation link how to get ident.
