code: def restart_program() -> None:
      """creates file tmp/restart and immediately stops the process, which webui.bat/webui.sh interpret as a command to start webui again"""
  
      tmpdir = Path(script_path) / "tmp"
      tmpdir.mkdir(parents=True, exist_ok=True)
      (tmpdir / "restart").touch()
  
      stop_program()
  
imports: import os
  from pathlib import Path
  from modules.paths_internal import script_path
label_desc: Use image node_id 2 for calling a global function with example usage: restart_program() without return types