<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def intersection_update(self, other):
 """ Removes intervals from self unless they also exist in other. """

        ivs = list(self)
        for iv in ivs:
            if iv not in other:
                self.remove(iv)