code: def _layout(self):
      i = x = y = ymax = 0
      width = self._width
      for i in range(len(self._widgets)):
          widget = self._widgets[i]
          (oldx, oldy) = widget.bbox()[:2]
          if i % width == 0:
              y = ymax
              x = 0
          widget.move(x - oldx, y - oldy)
          x = widget.bbox()[2] + 10
          ymax = max(ymax, widget.bbox()[3] + 10)
  
imports: from tkinter import IntVar, Menu, Tk
  from nltk.draw.util import BoxWidget, CanvasFrame, CanvasWidget, OvalWidget, ParenWidget, TextWidget
  from nltk.tree import Tree
  from nltk.util import in_idle
label_desc: Use image node_id 2 for calling the TreeView obj's underlying member method code with example usage: obj._layout() without return types