code: def fixture_session(**kw):
      kw.setdefault("autoflush", True)
      kw.setdefault("expire_on_commit", True)
  
      bind = kw.pop("bind", config.db)
  
      sess = orm.Session(bind, **kw)
      _fixture_sessions.add(sess)
      return sess
  
imports: from __future__ import annotations
  from typing import Any
  import sqlalchemy
  from .base import TestBase
  from .sql import TablesTest
  from ..None import assertions
  from ..None import config
  from ..None import schema
  from ..entities import BasicEntity
  from ..entities import ComparableEntity
  from ..util import adict
  from ...None import orm
  from ...orm import DeclarativeBase
  from ...orm import events
  from ...orm import registry
label_desc: Use image node_id 1 for calling a global function with example usage: fixture_session() and returns: sess