code: def checkPortAlive(entrypoint: str) -> None:
      while True:
          try:
              requests.get(
                  url=f"http://{entrypoint}/api/v1/master",
                  verify=False,
              )
              return
          except Exception as e:
              print(f"Encountered exception: {e}")
              continue
  
file_path: determined/helm/charts/determined/scripts/k8s-password-change.py
imports: import json
  import sys
  import time
  from typing import List
  import requests
label_desc: Use image node_id 2 for calling a global function with example usage: checkPortAlive(entrypoint) without return types