human
Here's a good function header given the following:
I wrote the below code

    def take(seq, n):
        for i in range(n):
            (yield next(seq))
    if (not hasattr(seq, 'next')):
        seq = iter(seq)
    while True:
        x = list(take(seq, size))
        if x:
            (yield x)
        else:
            break

What's a good function header?
assistant
#Here's a good function header.

def group(seq, size):