code: def create_connection(conn_id_name: str):
      conn = Connection(
          conn_id=conn_id_name,
          conn_type="http",
          host="localhost",
          port=8083,
      )
      session = settings.Session()
      session.add(conn)
      session.commit()
  
file_path: airflow/tests/system/providers/amazon/aws/example_http_to_s3.py
imports: from __future__ import annotations
  from datetime import datetime
  from airflow import settings
  from airflow.decorators import task
  from airflow.models.baseoperator import chain
  from airflow.models.connection import Connection
  from airflow.models.dag import DAG
  from airflow.operators.bash import BashOperator
  from airflow.providers.amazon.aws.operators.s3 import S3CreateBucketOperator, S3DeleteBucketOperator
  from airflow.providers.amazon.aws.transfers.http_to_s3 import HttpToS3Operator
  from airflow.utils.trigger_rule import TriggerRule
  from tests.system.providers.amazon.aws.utils import SystemTestContextBuilder
  from tests.system.utils import get_test_run
label_desc: Use image node_id 1 for calling a global function with example usage: create_connection(conn_id_name) without return types