def stderr():
<EOL>byte_stderr = sys.stderr<EOL>if sys.version_info.major > <NUM_LIT:2>:<EOL><INDENT>byte_stderr = sys.stderr.buffer  <EOL><DEDENT>return byte_stderr<EOL>
Returns the stderr as a byte stream in a Py2/PY3 compatible manner

Returns
-------
io.BytesIO
    Byte stream of stderr