code: def test_custom_success_message(canned_write_client):
      response = canned_write_client.post(
          "/data/delete_name",
          {"rowid": 1},
          cookies={
              "ds_actor": canned_write_client.actor_cookie(
                  {"id": "root"}
              )
          },
          csrftoken_from=True,
      )
      assert 302 == response.status
      messages = canned_write_client.ds.unsign(
          response.cookies["ds_messages"], "messages"
      )
      assert [["Name deleted", 1]] == messages
  
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 7 for calling a global function with example usage: test_custom_success_message(canned_write_client) without return types