code: def wait_for_master(
      master_host: str,
      master_port: int = 8080,
      timeout: int = DEFAULT_TIMEOUT,
      cert: Optional[certs.Cert] = None,
  ) -> None:
      master_url = _make_master_url(master_host, master_port)
  
      return wait_for_master_url(master_url, timeout, cert)
  
file_path: determined/harness/determined/deploy/healthcheck.py
imports: import time
  from typing import Optional
  import requests
  from determined.common import api
  from determined.common.api import certs
  from .errors import MasterTimeoutExpired
label_desc: Use image node_id 2 for calling a global function with example usage: wait_for_master(master_host, master_port, timeout, cert) and returns: wait_for_master_url