code: def __init__(self, canvas, parent, item):
      self.canvas = canvas
      self.parent = parent
      self.item = item
      self.state = "collapsed"
      self.selected = False
      self.children = []
      self.x = self.y = None
      self.iconimages = {}
  
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 1 to create a new TreeNode object  with example: obj = TreeNode(canvas, parent, item)