code: def pop_max(self):
          
  
          if self.root is NULL:
              raise KeyError("pop from an empty blackjack")
  
          self.root, value = self.root.delete_max()
          self._len -= 1
          return value
docs: Remove the maximum value and return it.