code: def test_get_datasource_sqlatable(session_with_data: Session) -> None:
      from superset.connectors.sqla.models import SqlaTable
      from superset.daos.datasource import DatasourceDAO
  
      result = DatasourceDAO.get_datasource(
          datasource_type=DatasourceType.TABLE,
          datasource_id=1,
          session=session_with_data,
      )
  
      assert 1 == result.id
      assert "my_sqla_table" == result.table_name
      assert isinstance(result, SqlaTable)
  
file_path: superset/tests/unit_tests/datasource/dao_tests.py
imports: from collections.abc import Iterator
  import pytest
  from sqlalchemy.orm.session import Session
  from superset.utils.core import DatasourceType
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_datasource_sqlatable(session_with_data) without return types