human
I wrote the below code

    ilines = iter(lines)
    def raw_in(prompt):
        try:
            return next(ilines)
        except StopIteration:
            return ''
    return raw_in

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

def pseudo_input(lines):