<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def chunks(iterable, size=1):
 """Splits iterator in chunks."""

    iterator = iter(iterable)

    for element in iterator:
        yield chain([element], islice(iterator, size - 1))