@classmethod<EOL><INDENT>def decode_produce_response(cls, data):<DEDENT>
((correlation_id, num_topics), cur) = relative_unpack('<STR_LIT>', data, <NUM_LIT:0>)<EOL>for _ in range(num_topics):<EOL><INDENT>((strlen,), cur) = relative_unpack('<STR_LIT>', data, cur)<EOL>topic = data[cur:cur + strlen]<EOL>cur += strlen<EOL>((num_partitions,), cur) = relative_unpack('<STR_LIT>', data, cur)<EOL>for _ in range(num_partitions):<EOL><INDENT>((partition, error, offset), cur) = relative_unpack('<STR_LIT>',<EOL>data, cur)<EOL>yield ProduceResponse(topic, partition, error, offset)<EOL><DEDENT><DEDENT>
Decode bytes to a ProduceResponse

Arguments:
    data: bytes to decode