code: def StackBrowser(root, exc, flist=None, top=None):
      global sc, item, node  # For testing.
      if top is None:
          top = tk.Toplevel(root)
      sc = ScrolledCanvas(top, bg="white", highlightthickness=0)
      sc.frame.pack(expand=1, fill="both")
      item = StackTreeItem(exc, flist)
      node = TreeNode(sc.canvas, None, item)
      node.expand()
  
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 1 for calling a global function with example usage: StackBrowser(root, exc, flist, top) without return types