def generate_simple_call(opcode: int, index: int):
bs = b"<STR_LIT>"<EOL>bs += opcode.to_bytes(<NUM_LIT:1>, byteorder="<STR_LIT>")<EOL>if isinstance(index, int):<EOL><INDENT>if PY36:<EOL><INDENT>bs += index.to_bytes(<NUM_LIT:1>, byteorder="<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>bs += index.to_bytes(<NUM_LIT:2>, byteorder="<STR_LIT>")<EOL><DEDENT><DEDENT>else:<EOL><INDENT>bs += index<EOL><DEDENT>return bs<EOL>
Generates a simple call, with an index for something.

:param opcode: The opcode to generate.
:param index: The index to use as an argument.
:return: