code: def lastvisiblechild(self):
      if self.children and self.state == "expanded":
          return self.children[-1].lastvisiblechild()
      else:
          return self
  
imports: import os
  from tkinter import *
  from tkinter.ttk import Frame, Scrollbar
  from idlelib.config import idleConf
  from idlelib import zoomheight
label_desc: Use image node_id 12 for calling the TreeNode obj's underlying member method code with example usage: obj.lastvisiblechild() and returns: self, self