code: def test_csv_trace(app_client_with_trace):
      response = app_client_with_trace.get(
          "/fixtures/simple_primary_key.csv?_trace=1"
      )
      assert (
          response.headers["content-type"] == "text/html; charset=utf-8"
      )
      soup = Soup(response.text, "html.parser")
      assert (
          soup.find("textarea").text
          == "id,content\r\n1,hello\r\n2,world\r\n3,\r\n4,RENDER_CELL_DEMO\r\n5,RENDER_CELL_ASYNC\r\n"
      )
      assert (
          "select id, content from simple_primary_key"
          in soup.find("pre").text
      )
  
file_path: datasette/tests/test_csv.py
imports: from datasette.app import Datasette
  from bs4 import BeautifulSoup
  import pytest
  from .fixtures import app_client, app_client_csv_max_mb_one, app_client_with_cors, app_client_with_trace
  import urllib.parse
label_desc: Use image node_id 3 for calling a global function with example usage: test_csv_trace(app_client_with_trace) without return types