code: def test_duplicate_connection_error(admin_client):
      """Test Duplicate multiple connection with suffix
      when there are already 10 copies, no new copy
      should be created"""
  
      connection_ids = [
          f"test_duplicate_postgres_connection_copy{i}"
          for i in range(1, 11)
      ]
      connections = [
          Connection(
              conn_id=connection_id,
              conn_type="FTP",
              description="Postgres",
              host="localhost",
              schema="airflow",
              port=3306,
          )
          for connection_id in connection_ids
      ]
  
      with create_session() as session:
          session.query(Connection).delete()
          session.add_all(connections)
  
      data = {"action": "mulduplicate", "rowid": [connections[0].id]}
      resp = admin_client.post(
          "/connection/action_post", data=data, follow_redirects=True
      )
      assert resp.status_code == 200
  
      expected_connections_ids = {
          f"test_duplicate_postgres_connection_copy{i}"
          for i in range(1, 11)
      }
      connections_ids = {
          conn.conn_id for conn in session.query(Connection.conn_id)
      }
      assert expected_connections_ids == connections_ids
  
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 17 for calling a global function with example usage: test_duplicate_connection_error(admin_client) without return types