code: def test_json_response(
      canned_write_client, headers, body, querystring
  ):
      response = canned_write_client.post(
          "/data/add_name" + (querystring or ""),
          body=body,
          headers=headers,
      )
      assert 200 == response.status
      assert (
          response.headers["content-type"]
          == "application/json; charset=utf-8"
      )
      assert response.json == {
          "ok": True,
          "message": "Query executed, 1 row affected",
          "redirect": "/data/add_name?success",
      }
      rows = canned_write_client.get(
          "/data/names.json?_shape=array"
      ).json
      assert rows == [{"rowid": 1, "name": "NameGoesHere"}]
  
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 14 for calling a global function with example usage: test_json_response(canned_write_client, headers, body, querystring) without return types