code: def mk_dropdown_tree(cls, model, for_node=None):
          
  
          options = [(0, _('-- root --'))]
          for node in model.get_root_nodes():
              cls.add_subtree(for_node, node, options)
          return options
docs: Creates a tree-like list of choices