code: def test_insert(canned_write_client):
      response = canned_write_client.post(
          "/data/add_name",
          {"name": "Hello"},
          csrftoken_from=True,
          cookies={"foo": "bar"},
      )
      messages = canned_write_client.ds.unsign(
          response.cookies["ds_messages"], "messages"
      )
      assert messages == [["Query executed, 1 row affected", 1]]
      assert response.status == 302
      assert response.headers["Location"] == "/data/add_name?success"
  
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 3 for calling a global function with example usage: test_insert(canned_write_client) without return types