code: def is_restartable() -> bool:
      """
      Return True if the webui is restartable (i.e. there is something watching to restart it with)
      """
      return bool(os.environ.get("SD_WEBUI_RESTART"))
  
imports: import os
  from pathlib import Path
  from modules.paths_internal import script_path
label_desc: Use image node_id 1 for calling a global function with example usage: is_restartable() and returns: bool