code: def session_with_data(session: Session) -> Iterator[Session]:
      from superset.models.dashboard import Dashboard
  
      engine = session.get_bind()
      Dashboard.metadata.create_all(engine)  # pylint: disable=no-member
  
      dashboard_obj = Dashboard(
          id=100,
          dashboard_title="test_dashboard",
          slug="test_slug",
          slices=[],
          published=True,
      )
  
      session.add(dashboard_obj)
      session.commit()
      yield session
      session.rollback()
  
imports: from collections.abc import Iterator
  import pytest
  from sqlalchemy.orm.session import Session
label_desc: Use image node_id 1 for calling a global function with example usage: session_with_data(session) without return types