<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self, iterable):
 """ Update bag with all elements in iterable. pbag([1, 1, 2]) """

        if iterable:
            return PBag(reduce(_add_to_counters, iterable, self._counts))

        return self