code: def _set_up_signal_handler(server: Server) -> None:
      LOGGER.debug("Setting up signal handler")
  
      def signal_handler(signal_number, stack_frame):
          # The server will shut down its threads and exit its loop.
          server.stop()
  
      signal.signal(signal.SIGTERM, signal_handler)
      signal.signal(signal.SIGINT, signal_handler)
      if sys.platform == "win32":
          signal.signal(signal.SIGBREAK, signal_handler)
      else:
          signal.signal(signal.SIGQUIT, signal_handler)
  
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 1 for calling a global function with example usage: _set_up_signal_handler(server) without return types