<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def make_sized_encoder(opcode_value):
 """ Create an encoder that encodes the given opcode value as binary data and appends the given data. """

    opcode_bin = int2byte(opcode_value)

    def f(data):
        return opcode_bin + data
    return f