<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(cls, iterable, n, fill=None):
 """ Collects elements in fixed-length chunks. """


    return cls(itertools.zip_longest(*[iter(iterable)] * n, fillvalue=fill))