@classmethod<EOL><INDENT>def decode_offset_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>(topic, cur) = read_short_string(data, cur)<EOL>((num_partitions,), cur) = relative_unpack('<STR_LIT>', data, cur)<EOL>for _ in range(num_partitions):<EOL><INDENT>((partition, error, num_offsets,), cur) =relative_unpack('<STR_LIT>', data, cur)<EOL>offsets = []<EOL>for k in range(num_offsets):<EOL><INDENT>((offset,), cur) = relative_unpack('<STR_LIT>', data, cur)<EOL>offsets.append(offset)<EOL><DEDENT>yield OffsetResponse(topic, partition, error, tuple(offsets))<EOL><DEDENT><DEDENT>
Decode bytes to an OffsetResponse

Arguments:
    data: bytes to decode