code: def get_contexted_session():
      session = SessionLocal()
      try:
          yield session
      finally:
          session.close()
  
file_path: aim/aim/web/api/db.py
imports: import logging
  import os
  from contextlib import contextmanager
  from sqlalchemy import create_engine
  from sqlalchemy.ext.declarative import declarative_base
  from sqlalchemy.orm import sessionmaker
  from aim.web.configs import AIM_LOG_LEVEL_KEY
  from aim.web.utils import get_db_url
label_desc: Use image node_id 2 for calling a global function with example usage: get_contexted_session() without return types