def __eq__(self, other):
if self._begin == other._begin and self._end == other._end:<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Two intervals are the same if they have the same begin and end.

        Args:
            other (Interval): other Interval

        Returns:
            bool: are self and other equal.