code: def connection(self, host, port):
      connections.add_connection(default={"host": host, "port": port})
      connections.connect(alias="default")
      if connections.has_connection("default") is False:
          raise Exception("no connections")
  
file_path: milvus/tests/python_client/chaos/test_chaos_data_consist.py
imports: import pytest
  import datetime
  from time import sleep
  from pymilvus import connections, utility
  from base.collection_wrapper import ApiCollectionWrapper
  from common.cus_resource_opts import CustomResourceOperations
  from common import common_func
  from common import common_type
  from chaos.chaos_commons import gen_experiment_config, get_chaos_yamls, reconnect
  from common.common_type import CaseLabel
  from chaos import constants
  from utils.util_log import test_log
  from utils.util_k8s import wait_pods_ready
  from chaos import chaos_commons
label_desc: Use image node_id 1 for calling the TestChaosData obj's underlying member method code with example usage: obj.connection(host, port) without return types