code: def test_session_transaction_needs_cookies(app):
      c = app.test_client(use_cookies=False)
  
      with pytest.raises(TypeError, match="Cookies are disabled."):
          with c.session_transaction():
              pass
  
imports: import importlib.metadata
  import click
  import pytest
  import flask
  from flask import appcontext_popped
  from flask.cli import ScriptInfo
  from flask.globals import _cv_request
  from flask.json import jsonify
  from flask.testing import EnvironBuilder
  from flask.testing import FlaskCliRunner
label_desc: Use image node_id 14 for calling a global function with example usage: test_session_transaction_needs_cookies(app) without return types