code: def contains_interval(self, other):
          
          return (
              self.begin <= other.begin and
              self.end >= other.end
          )
docs: Whether other is contained in this Interval.
          :param other: Interval
          :return: True or False
          :rtype: bool