<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def advance(self):
 """Advance the base iterator, publish to constituent iterators."""

        elem = next(self._iterable)
        for deque in self._deques:
            deque.append(elem)