def ensure_instruction(instruction: int) -> bytes:
if PY36:<EOL><INDENT>return instruction.to_bytes(<NUM_LIT:2>, byteorder="<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>return instruction.to_bytes(<NUM_LIT:1>, byteorder="<STR_LIT>")<EOL><DEDENT>
Wraps an instruction to be Python 3.6+ compatible. This does nothing on Python 3.5 and below.

This is most useful for operating on bare, single-width instructions such as
``RETURN_FUNCTION`` in a version portable way.

:param instruction: The instruction integer to use.
:return: A safe bytes object, if applicable.