code: def _on_server_start(server: Server) -> None:
      _maybe_print_old_git_warning(server.main_script_path)
      _maybe_print_static_folder_warning(server.main_script_path)
      _print_url(server.is_running_hello)
      report_watchdog_availability()
      _print_new_version_message()
  
      # Load secrets.toml if it exists. If the file doesn't exist, this
      # function will return without raising an exception. We catch any parse
      # errors and display them here.
      try:
          secrets.load_if_toml_exists()
      except Exception as ex:
          LOGGER.error(f"Failed to load secrets.toml file", exc_info=ex)
  
      def maybe_open_browser():
          if config.get_option("server.headless"):
              # Don't open browser when in headless mode.
              return
  
          if config.is_manually_set("browser.serverAddress"):
              addr = config.get_option("browser.serverAddress")
          elif config.is_manually_set("server.address"):
              if server_address_is_unix_socket():
                  # Don't open browser when server address is an unix socket
                  return
              addr = config.get_option("server.address")
          else:
              addr = "localhost"
  
          util.open_browser(server_util.get_url(addr))
  
      # Schedule the browser to open on the main thread.
      asyncio.get_running_loop().call_soon(maybe_open_browser)
  
imports: import asyncio
  import os
  import signal
  import sys
  from pathlib import Path
  from typing import Any, Dict, List
  import click
  from streamlit import config, env_util, file_util, net_util, secrets, url_util, util, version
  from streamlit.config import CONFIG_FILENAMES
  from streamlit.git_util import MIN_GIT_VERSION, GitRepo
  from streamlit.logger import get_logger
  from streamlit.source_util import invalidate_pages_cache
  from streamlit.watcher import report_watchdog_availability, watch_dir, watch_file
  from streamlit.web.server import Server, server_address_is_unix_socket, server_util
label_desc: Use image node_id 6 for calling a global function with example usage: _on_server_start(server) without return types