code: def GetText(self):
      frame, lineno = self.info
      try:
          modname = frame.f_globals["__name__"]
      except:
          modname = "?"
      code = frame.f_code
      filename = code.co_filename
      funcname = code.co_name
      sourceline = linecache.getline(filename, lineno)
      sourceline = sourceline.strip()
      if funcname in ("?", "", None):
          item = "%s, line %d: %s" % (modname, lineno, sourceline)
      else:
          item = "%s.%s(...), line %d: %s" % (
              modname,
              funcname,
              lineno,
              sourceline,
          )
      return item
  
imports: import linecache
  import os
  import tkinter
  from idlelib.debugobj import ObjectTreeItem, make_objecttreeitem
  from idlelib.tree import TreeNode, TreeItem, ScrolledCanvas
label_desc: Use image node_id 2 for calling the FrameTreeItem obj's underlying member method code with example usage: obj.GetText() and returns: item