code: def test_canned_write_query_disabled_for_immutable_database(
      canned_write_immutable_client,
  ):
      response = canned_write_immutable_client.get("/fixtures/add")
      assert response.status == 200
      assert (
          "This query cannot be executed because the database is immutable."
          in response.text
      )
      assert (
          '<input type="submit" value="Run SQL" disabled>'
          in response.text
      )
      # Submitting form should get a forbidden error
      response = canned_write_immutable_client.post(
          "/fixtures/add",
          {"text": "text"},
          csrftoken_from=True,
      )
      assert response.status == 403
      assert "Database is immutable" in response.text
  
imports: from bs4 import BeautifulSoup
  import json
  import pytest
  import re
  from .fixtures import make_app_client, app_client
label_desc: Use image node_id 22 for calling a global function with example usage: test_canned_write_query_disabled_for_immutable_database(canned_write_immutable_client) without return types