<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(items, size):
 """Batches a list into a list of lists, with sub-lists sized by a specified batch size."""

    return [items[x:x + size] for x in xrange(0, len(items), size)]