code: def reconnect(connections, alias="default", timeout=360):
      """trying to connect by connection alias"""
      is_connected = False
      start = time.time()
      end = time.time()
      while not is_connected or end - start < timeout:
          try:
              connections.connect(alias)
              is_connected = True
          except Exception as e:
              log.debug(f"fail to connect, error: {str(e)}")
              time.sleep(10)
          end = time.time()
      else:
          log.info(f"failed to reconnect after {timeout} seconds")
      return connections.connect(alias)
  
file_path: milvus/tests/python_client/chaos/chaos_commons.py
imports: import os
  import threading
  import time
  import glob
  from chaos import constants
  from yaml import full_load
  from utils.util_log import test_log
  from delayed_assert import expect
  import pytest
label_desc: Use image node_id 8 for calling a global function with example usage: reconnect(connections, alias, timeout) and returns: connections