parameters: (self)
return_statement: return (node.key, node.value)
docstring: Get item with max key of tree, raises ValueError if tree is empty.
docstring_summary: Get item with max key of tree, raises ValueError if tree is empty.
docstring_tokens: Get item with max key of tree raises ValueError if tree is empty .
function: def max_item(self):
          """ Get item with max key of tree, raises ValueError if tree is empty. """
          if self.count == 0:
              raise ValueError("Tree is empty")
          node = self._root
          while node.right is not None:
              node = node.right
          return (node.key, node.value)
function_tokens: def max_item ( self ) : if self . count == 0 : raise ValueError ( "Tree is empty" ) node = self . _root while node . right is not None : node = node . right return ( node . key , node . value )