code: def append(self, item):
          
          if not isinstance(item, Tree):
              return ValueError("Can only append items of type Tree")
          if not self.children: self.children = []
          item.parent = self
          self.children.append(item)
docs: Add an item to the Tree