code: def test_table(session: Session) -> "SqlaTable":
      """
      Fixture that generates an in-memory table.
      """
      from superset.connectors.sqla.models import SqlaTable, TableColumn
      from superset.models.core import Database
  
      engine = session.get_bind()
      SqlaTable.metadata.create_all(engine)  # pylint: disable=no-member
  
      columns = [
          TableColumn(column_name="ds", is_dttm=1, type="TIMESTAMP"),
          TableColumn(
              column_name="event_time", is_dttm=1, type="TIMESTAMP"
          ),
          TableColumn(column_name="id", type="INTEGER"),
          TableColumn(column_name="dttm", type="INTEGER"),
          TableColumn(column_name="duration_ms", type="INTEGER"),
      ]
  
      return SqlaTable(
          table_name="test_table",
          columns=columns,
          metrics=[],
          main_dttm_col=None,
          database=Database(
              database_name="my_database", sqlalchemy_uri="sqlite://"
          ),
      )
  
file_path: superset/tests/unit_tests/config_test.py
imports: from functools import partial
  from typing import Any, TYPE_CHECKING
  import pytest
  from pytest_mock import MockerFixture
  from sqlalchemy.orm.session import Session
label_desc: Use image node_id 2 for calling a global function with example usage: test_table(session) and returns: SqlaTable