code: def reconnect(self):
      if self.user and self.password:
          connections.connect(
              "default",
              host=self.host,
              port=self.port,
              user=self.user,
              password=self.password,
              secure=True,
          )
      else:
          connections.connect("default", host=self.host, port=self.port)
      if connections.has_connection("default") is False:
          raise Exception("no connections")
  
file_path: milvus/tests/python_client/chaos/test_chaos_apply.py
imports: import threading
  import pytest
  import time
  from time import sleep
  from pathlib import Path
  import json
  from pymilvus import connections
  from common.cus_resource_opts import CustomResourceOperations
  from common.milvus_sys import MilvusSys
  from utils.util_log import test_log
  from datetime import datetime
  from utils.util_k8s import wait_pods_ready, get_milvus_instance_name, get_milvus_deploy_tool
  from utils.util_common import update_key_value, update_key_name, gen_experiment_config, wait_signal_to_apply_chaos
  import constants
label_desc: Use image node_id 2 for calling the TestChaosApply obj's underlying member method code with example usage: obj.reconnect() without return types