<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def batch_update(self, values, w=1):
 """ Update the t-digest with an iterable of values. This assumes all points have the same weight. """

        for x in values:
            self.update(x, w)
        self.compress()
        return