code: def get_milvus_instance_name(
      namespace, host="127.0.0.1", port="19530", milvus_sys=None
  ):
      """
      get milvus instance name after connection
  
      :param namespace: the namespace where the release
      :type namespace: str
  
      :param host: milvus host ip
      :type host: str
  
      :param port: milvus port
      :type port: str
      :example:
              >>> milvus_instance_name = get_milvus_instance_name("chaos-testing", "10.96.250.111")
              "milvus-multi-querynode"
  
      """
      if milvus_sys is None:
          connections.add_connection(
              _default={"host": host, "port": port}
          )
          connections.connect(alias="_default")
          ms = MilvusSys()
      else:
          ms = milvus_sys
      query_node_ip = ms.query_nodes[0]["infos"]["hardware_infos"][
          "ip"
      ].split(":")[0]
      ip_name_pairs = get_pod_ip_name_pairs(
          namespace, "app.kubernetes.io/name=milvus"
      )
      pod_name = ip_name_pairs[query_node_ip]
  
      init_k8s_client_config()
      api_instance = client.CoreV1Api()
      try:
          api_response = api_instance.read_namespaced_pod(
              namespace=namespace, name=pod_name
          )
      except ApiException as e:
          log.error(
              "Exception when calling CoreV1Api->list_namespaced_pod: %s\n"
              % e
          )
          raise Exception(str(e))
      milvus_instance_name = api_response.metadata.labels[
          "app.kubernetes.io/instance"
      ]
      return milvus_instance_name
  
imports: import json
  import os.path
  import time
  import pyetcd
  import requests
  from pymilvus import connections
  from kubernetes import client, config
  from kubernetes.client.rest import ApiException
  from common.milvus_sys import MilvusSys
  from utils.util_log import test_log
  from chaos import chaos_commons
  from common.common_type import in_cluster_env
label_desc: Use image node_id 7 for calling a global function with example usage: get_milvus_instance_name(namespace, host, port, milvus_sys) and returns: milvus_instance_name