code: def is_empty(self):
          
          return (
              self._lower > self._upper or
              (self._lower == self._upper and (self._left == OPEN or self._right == OPEN))
          )
docs: Test interval emptiness.
  
          :return: True if interval is empty, False otherwise.