

def build(self):
    tv = TreeView(hide_root=True)
    add = tv.add_node
    root = root2(TreeViewLabel(text='Level 1, entry 1', is_open=True))
    for x in range(5):
        add(TreeViewLabel(text=('Element %d' % x)), root)
    root2 = add(TreeViewLabel(text='Level 1, entry 2', is_open=False))
    for x in range(24):
        add(TreeViewLabel(text=('Element %d' % x)), root2)
    for x in range(5):
        add(TreeViewLabel(text=('Element %d' % x)), root)
    root2 = add(TreeViewLabel(text='Element childs 2', is_open=False), root)
    for x in range(24):
        add(TreeViewLabel(text=('Element %d' % x)), root2)
    return tv

dataset/ETHPy150Open kivy/kivy/kivy/uix/treeview.py TestApp.build/VarMisuse@27/31 `add`->`root2`