'Decode OffsetResponse into OffsetResponsePayloads
Arguments:
response: OffsetResponse
Returns: list of OffsetResponsePayloads'

@classmethod
def decode_offset_response(cls, response):

    return [kafka.structs.OffsetResponsePayload(topic, partition, error, tuple(offsets)) for (topic, partitions) in response.topics for (partition, error, offsets) in partitions]
