human
I wrote the below code

    from _pytest.compat import _PY2
    if (not _PY2):
        return
    from doctest import _SpoofOut
    class UnicodeSpoof(_SpoofOut, ):
        def getvalue(self):
            result = _SpoofOut.getvalue(self)
            if encoding:
                result = result.decode(encoding)
            return result
    runner._fakeout = UnicodeSpoof()

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

def _fix_spoof_python2(runner, encoding):