code: def _frame2message(frame):
      """Return a message string for frame."""
      code = frame.f_code
      filename = code.co_filename
      lineno = frame.f_lineno
      basename = os.path.basename(filename)
      message = f"{basename}:{lineno}"
      if code.co_name != "?":
          message = f"{message}: {code.co_name}()"
      return message
  
imports: import bdb
  import os
  from tkinter import *
  from tkinter.ttk import Frame, Scrollbar
  from idlelib import macosx
  from idlelib.scrolledlist import ScrolledList
  from idlelib.window import ListedToplevel
label_desc: Use image node_id 2 for calling a global function with example usage: _frame2message(frame) and returns: message