def METHOD_NAME(iterable, size):
    """Make an iterator that returns lists of (up to) size items from iterable.
    Example:
    >>> i = itergroup(xrange(25), 10)
    >>> print i.next()
    [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
    >>> print i.next()
    [10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
    >>> print i.next()
    [20, 21, 22, 23, 24]
    >>> print i.next()
    Traceback (most recent call last):
     ...
    StopIteration
    """
    group = []
    for item in iterable:
        group.append(item)
        if len(group) == size:
            yield group
            group = []
    if group:
        yield group