code: def test_session_id_rotates(app, user_client):
      old_session_cookie = get_session_cookie(user_client)
      assert old_session_cookie is not None
  
      resp = user_client.get("/logout/")
      assert resp.status_code == 302
  
      patch_path = "airflow.providers.fab.auth_manager.security_manager.override.check_password_hash"
      with mock.patch(patch_path) as check_password_hash:
          check_password_hash.return_value = True
          resp = user_client.post(
              "/login/",
              data={"username": "test_user", "password": "test_user"},
          )
      assert resp.status_code == 302
  
      new_session_cookie = get_session_cookie(user_client)
      assert new_session_cookie is not None
      assert old_session_cookie.value != new_session_cookie.value
  
file_path: airflow/tests/www/views/test_session.py
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from airflow.exceptions import AirflowConfigException
  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 5 for calling a global function with example usage: test_session_id_rotates(app, user_client) without return types