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

    def lines():
        for line in code.splitlines():
            (yield line)
        raise EOFError()
    def patch_raw_input(lines=lines()):
        return next(lines)
    try:
        orig_raw_import = yapf.py3compat.raw_input
        yapf.py3compat.raw_input = patch_raw_input
        (yield)
    finally:
        yapf.py3compat.raw_input = orig_raw_import

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

@contextmanager
def patched_input(code):