code: def test_searchmode(table_metadata, querystring, expected_rows):
      with make_app_client(
          metadata={
              "databases": {
                  "fixtures": {"tables": {"searchable": table_metadata}}
              }
          }
      ) as client:
          response = client.get(
              "/fixtures/searchable.json?_shape=arrays&" + querystring
          )
          assert expected_rows == response.json["rows"]
  
file_path: datasette/tests/test_table_api.py
imports: from datasette.utils import detect_json1
  from datasette.utils.sqlite import sqlite_version
  from .fixtures import app_client, app_client_with_trace, app_client_returned_rows_matches_page_size, generate_compound_rows, generate_sortable_rows, make_app_client
  import json
  import pytest
  import urllib
label_desc: Use image node_id 1 for calling a global function with example usage: test_searchmode(table_metadata, querystring, expected_rows) without return types