code: def test_canned_query_permissions(canned_write_client):
      assert 403 == canned_write_client.get("/data/delete_name").status
      assert 200 == canned_write_client.get("/data/update_name").status
      cookies = {
          "ds_actor": canned_write_client.actor_cookie({"id": "root"})
      }
      assert (
          200
          == canned_write_client.get(
              "/data/delete_name", cookies=cookies
          ).status
      )
      assert (
          200
          == canned_write_client.get(
              "/data/update_name", cookies=cookies
          ).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 16 for calling a global function with example usage: test_canned_query_permissions(canned_write_client) without return types