code: def ask_save_dialog(self):
      msg = "Source Must Be Saved\n" + 5 * " " + "OK to Save?"
      confirm = messagebox.askokcancel(
          title="Save Before Run or Check",
          message=msg,
          default=messagebox.OK,
          parent=self.editwin.text,
      )
      return confirm
  
file_path: cpython/Lib/idlelib/runscript.py
imports: import os
  import tabnanny
  import time
  import tokenize
  from tkinter import messagebox
  from idlelib.config import idleConf
  from idlelib import macosx
  from idlelib import pyshell
  from idlelib.query import CustomRun
  from idlelib import outwin
label_desc: Use image node_id 8 for calling the ScriptBinding obj's underlying member method code with example usage: obj.ask_save_dialog() and returns: confirm