code: def wait_until_live(args: ParseArgs):
      url = "http://{host}:{port}".format(
          host=args.host, port=args.port
      )
      while True:
          try:
              requests.get(url + check_live_path)
              info(
                  "Running VisualDL at http://%s:%s/ (Press CTRL+C to quit)",
                  args.host,
                  args.port,
              )
  
              if args.host == "localhost":
                  info(
                      "Serving VisualDL on localhost; to expose to the network, use a proxy or pass --host 0.0.0.0"
                  )
  
              if args.api_only:
                  info(
                      "Running in API mode, only %s/* will be served.",
                      args.public_path + "/api",
                  )
  
              break
          except Exception:
              time.sleep(0.5)
      if not args.api_only and args.open_browser:
          webbrowser.open(url + args.public_path)
  
imports: import json
  import multiprocessing
  import os
  import re
  import signal
  import sys
  import threading
  import time
  import urllib
  import webbrowser
  import requests
  from flask import Flask
  from flask import make_response
  from flask import redirect
  from flask import request
  from flask import Response
  from flask import send_file
  from flask_babel import Babel
  import visualdl.server
  from visualdl import __version__
  from visualdl.component.inference.fastdeploy_lib import get_start_arguments
  from visualdl.component.inference.fastdeploy_server import create_fastdeploy_api_call
  from visualdl.component.inference.model_convert_server import create_model_convert_api_call
  from visualdl.component.profiler.profiler_server import create_profiler_api_call
  from visualdl.server.api import create_api_call
  from visualdl.server.api import get_component_tabs
  from visualdl.server.args import parse_args
  from visualdl.server.args import ParseArgs
  from visualdl.server.log import info
  from visualdl.server.serve import upload_to_dev
  from visualdl.server.template import Template
  from visualdl.utils import update_util
label_desc: Use image node_id 2 for calling a global function with example usage: wait_until_live(args) without return types