code: def check_python_version():
      is_windows = platform.system() == "Windows"
      major = sys.version_info.major
      minor = sys.version_info.minor
      micro = sys.version_info.micro
  
      if is_windows:
          supported_minors = [10]
      else:
          supported_minors = [7, 8, 9, 10, 11]
  
      if not (major == 3 and minor in supported_minors):
          import modules.errors
  
          modules.errors.print_error_explanation(
              f"""
  INCOMPATIBLE PYTHON VERSION
  
  This program is tested with 3.10.6 Python, but you have {major}.{minor}.{micro}.
  If you encounter an error with "RuntimeError: Couldn't install torch." message,
  or any other error regarding unsuccessful package (library) installation,
  please downgrade (or upgrade) to the latest version of 3.10 Python
  and delete current Python and "venv" folder in WebUI's directory.
  
  You can download 3.10 Python from here: https://www.python.org/downloads/release/python-3106/
  
  {"Alternatively, use a binary release of WebUI: https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases" if is_windows else ""}
  
  Use --skip-python-version-check to suppress this warning.
  """
          )
  
imports: import logging
  import re
  import subprocess
  import os
  import shutil
  import sys
  import importlib.util
  import importlib.metadata
  import platform
  import json
  from functools import lru_cache
  from modules import cmd_args, errors
  from modules.paths_internal import script_path, extensions_dir
  from modules.timer import startup_timer
  from modules import logging_config
label_desc: Use image node_id 1 for calling a global function with example usage: check_python_version() without return types