code: def test_connection_muldelete(admin_client, connection):
      conn_id = connection.id
      data = {"action": "muldelete", "rowid": [conn_id]}
      resp = admin_client.post(
          "/connection/action_post", data=data, follow_redirects=True
      )
      assert resp.status_code == 200
      with create_session() as session:
          assert (
              session.query(Connection)
              .filter(Connection.id == conn_id)
              .count()
              == 0
          )
  
imports: from __future__ import annotations
  import json
  from typing import Any
  from unittest import mock
  from unittest.mock import PropertyMock
  import pytest
  from airflow.models import Connection
  from airflow.utils.session import create_session
  from airflow.www.views import ConnectionFormWidget, ConnectionModelView
  from tests.test_utils.www import _check_last_log, _check_last_log_masked_connection, check_content_in_response
label_desc: Use image node_id 19 for calling a global function with example usage: test_connection_muldelete(admin_client, connection) without return types