code: def test_insert_with_cookies_requires_csrf(canned_write_client):
      response = canned_write_client.post(
          "/data/add_name",
          {"name": "Hello"},
          cookies={"foo": "bar"},
      )
      assert 403 == response.status
  
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 5 for calling a global function with example usage: test_insert_with_cookies_requires_csrf(canned_write_client) without return types