code: def test_sql_time_limit(app_client_shorter_time_limit):
      response = app_client_shorter_time_limit.get(
          "/fixtures?sql=select+sleep(0.5)"
      )
      assert 400 == response.status
      expected_html_fragments = [
          """
          <a href="https://docs.datasette.io/en/stable/settings.html#sql-time-limit-ms">sql_time_limit_ms</a>
      """.strip(),
          '<textarea style="width: 90%">select sleep(0.5)</textarea>',
      ]
      for expected_html_fragment in expected_html_fragments:
          assert expected_html_fragment in response.text
  
imports: from bs4 import BeautifulSoup
  from datasette.utils import allowed_pragmas
  from .fixtures import app_client, app_client_base_url_prefix, app_client_shorter_time_limit, app_client_two_attached_databases, make_app_client, METADATA
  from .utils import assert_footer_links, inner_html
  import copy
  import json
  import pathlib
  import pytest
  import re
  import urllib.parse
label_desc: Use image node_id 5 for calling a global function with example usage: test_sql_time_limit(app_client_shorter_time_limit) without return types