class_docstr: Save events into an SQL database.
  
  All events will be stored in a table called `events`.
docstr: Provide a transactional scope around a series of operations.
docstr_tok: ["Provide","a","transactional","scope","around","a","series","of","operations","."]
code: def session_scope(self) -> Generator[Session, None, None]:
      """Provide a transactional scope around a series of operations."""
      session = self.sessionmaker()
      try:
          yield session
      finally:
          session.close()
  
file_path: rasa/rasa/core/brokers/sql.py
imports: import contextlib
  import json
  import logging
  from asyncio import AbstractEventLoop
  from typing import Any, Dict, Optional, Text, Generator
  from sqlalchemy.orm import Session
  from sqlalchemy.ext.declarative import declarative_base, DeclarativeMeta
  from sqlalchemy import Column, Integer, String
  from sqlalchemy import Text
  from rasa.core.brokers.broker import EventBroker
  from rasa.utils.endpoints import EndpointConfig
label_desc: Use image node_id 2 for calling the SQLEventBroker obj's underlying member method code with example usage: obj.session_scope() without return types