def METHOD_NAME(service_name: str, service_url: str, timeout: int = 60) -> None:
    for _ in range(timeout):
        try:
            rest.call(rest.Method.GET, f"{service_url}/healthz/ready")  # to check whether the service is running
            break
        except rest.RestException:
            pass
        time.sleep(1)
    else:
        raise CheckHealthException(f"{service_name} service at {service_url} is not responding.")