code: def _setup_dialog(w):
      if w._windowingsystem == "aqua":
          w.tk.call(
              "::tk::unsupported::MacWindowStyle",
              "style",
              w,
              "moveableModal",
              "",
          )
      elif w._windowingsystem == "x11":
          w.wm_attributes("-type", "dialog")
  
imports: from tkinter import *
  from tkinter import _get_temp_root, _destroy_temp_root
  from tkinter import messagebox
label_desc: Use image node_id 2 for calling a global function with example usage: _setup_dialog(w) without return types