code: def is_pleasant(self):
          
          levels = sorted([n.level for n in self.leaves])
          return levels[0] == levels[-1]
docs: Return ``True`` if all the leaves
          in the subtree rooted at this node
          are at the same level.
  
          :rtype: bool