code: def get_db():
      db = SessionLocal()
      try:
          yield db
      finally:
          db.close()
  
file_path: fastapi/docs_src/sql_databases/sql_app/main.py
imports: from typing import List
  from fastapi import Depends, FastAPI, HTTPException
  from sqlalchemy.orm import Session
  from .None import crud, models, schemas
  from .database import SessionLocal, engine
label_desc: Use image node_id 1 for calling a global function with example usage: get_db() without return types