code: def _maybe_print_static_folder_warning(main_script_path: str) -> None:
      """Prints a warning if the static folder is misconfigured."""
  
      if config.get_option("server.enableStaticServing"):
          static_folder_path = file_util.get_app_static_dir(
              main_script_path
          )
          if not os.path.isdir(static_folder_path):
              click.secho(
                  f"WARNING: Static file serving is enabled, but no static folder found "
                  f"at {static_folder_path}. To disable static file serving, "
                  f"set server.enableStaticServing to false.",
                  fg="yellow",
              )
          else:
              # Raise warning when static folder size is larger than 1 GB
              static_folder_size = file_util.get_directory_size(
                  static_folder_path
              )
  
              if static_folder_size > MAX_APP_STATIC_FOLDER_SIZE:
                  config.set_option("server.enableStaticServing", False)
                  click.secho(
                      "WARNING: Static folder size is larger than 1GB. "
                      "Static file serving has been disabled.",
                      fg="yellow",
                  )
  
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 10 for calling a global function with example usage: _maybe_print_static_folder_warning(main_script_path) without return types