code: def test_error_in_on_success_message_sql(canned_write_client):
      response = canned_write_client.post(
          "/data/add_name_specify_id_with_error_in_on_success_message_sql",
          {"rowid": 1, "name": "Should fail"},
          csrftoken_from=True,
      )
      messages = canned_write_client.ds.unsign(
          response.cookies["ds_messages"], "messages"
      )
      assert messages == [
          [
              "Error running on_success_message_sql: no such column: bad",
              3,
          ]
      ]
  
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 10 for calling a global function with example usage: test_error_in_on_success_message_sql(canned_write_client) without return types