code: def get_pod_ips_by_label(pod_label: str, namespace: str) -> [str]:
      """
      :param pod_label: A label of the H2O Pods used in Kubernetes to filter the pods by.
      :param namespace: Kubernetes namespace the pods have been deployed to.
      :return: A list of pod IPs (IPv4), each IP in a separate string.
      """
      v1_core_pi = client.CoreV1Api()
      pods = v1_core_pi.list_namespaced_pod(
          watch=False,
          namespace=namespace,
          label_selector="app={}".format(pod_label),
          _request_timeout=360,
      )
      pod_ips = list()
      for pod in pods.items:
          pod_ips.append(pod.status.pod_ip)
  
      return pod_ips
  
file_path: h2o-3/h2o-k8s/tests/clustering/assisted-clustering.py
imports: import requests
  import argparse
  import sys
  import os
  import time
  from kubernetes import client, config, watch
label_desc: Use image node_id 7 for calling a global function with example usage: get_pod_ips_by_label(pod_label, namespace) and returns: pod_ips