code: def test_connection_id_trailing_blanks(admin_client, session):
      conn_id_with_blanks = "conn_id_with_trailing_blanks   "
      conn = {**CONNECTION, "conn_id": conn_id_with_blanks}
      resp = admin_client.post(
          "/connection/add", data=conn, follow_redirects=True
      )
      check_content_in_response("Added Row", resp)
  
      conn = session.query(Connection).one()
      assert "conn_id_with_trailing_blanks" == conn.conn_id
  
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 4 for calling a global function with example usage: test_connection_id_trailing_blanks(admin_client, session) without return types