code: def test_session_class(app: Flask, model_class: t.Any) -> None:
      class CustomSession(Session):
          pass
  
      db = SQLAlchemy(
          app,
          model_class=model_class,
          session_options={"class_": CustomSession},
      )
      assert isinstance(db.session(), CustomSession)
  
file_path: flask-sqlalchemy/tests/test_session.py
imports: from __future__ import annotations
  import typing
  import pytest
  import sqlalchemy
  import sqlalchemy.orm
  from flask import Flask
  from flask_sqlalchemy import SQLAlchemy
  from flask_sqlalchemy.session import Session
label_desc: Use image node_id 3 for calling a global function with example usage: test_session_class(app, model_class) without return types