code: def session():
      from airflow.utils.session import create_session
  
      with create_session() as session:
          yield session
  
file_path: airflow/tests/api_connexion/conftest.py
imports: from __future__ import annotations
  import warnings
  import pytest
  from airflow.exceptions import RemovedInAirflow3Warning
  from airflow.www import app
  from tests.test_utils.config import conf_vars
  from tests.test_utils.decorators import dont_initialize_flask_app_submodules
label_desc: Use image node_id 2 for calling a global function with example usage: session() without return types