def METHOD_NAME(
    config_cls: type[SQLAlchemySyncConfig | SQLAlchemySyncConfig],
) -> None:
    """Test provide_session if session already in scope state."""
    with patch(
        "litestar.contrib.sqlalchemy.plugins.init.config.common.get_litestar_scope_state"
    ) as get_litestar_scope_state_mock:
        session_mock = MagicMock()
        get_litestar_scope_state_mock.return_value = session_mock
        config = config_cls()
        assert config.provide_session(State(), {}) is session_mock  # type:ignore[arg-type]