human
I wrote the below code

    def rec(iterable):
        for i in iterable:
            if isinstance(i, (tuple, list)):
                for j in rec(i):
                    (yield j)
            else:
                (yield i)
    return rec(iterable)

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

def _flatten(iterable):