code: def get_pod_list(namespace, label_selector):
      """
      get pod list with label selector
  
      :param namespace: the namespace where the release
      :type namespace: str
  
      :param label_selector: labels to restrict which pods to list
      :type label_selector: str
  
      :example:
              >>> get_pod_list("chaos-testing", "app.kubernetes.io/instance=test-proxy-pod-failure, component=proxy")
      """
      init_k8s_client_config()
      api_instance = client.CoreV1Api()
      try:
          api_response = api_instance.list_namespaced_pod(
              namespace=namespace, label_selector=label_selector
          )
          return api_response.items
      except ApiException as e:
          log.error(
              "Exception when calling CoreV1Api->list_namespaced_pod: %s\n"
              % e
          )
          raise Exception(str(e))
  
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 4 for calling a global function with example usage: get_pod_list(namespace, label_selector) and returns: api_response