code: def decode_offset_fetch_response(cls, response):
          
          return [
              kafka.structs.OffsetFetchResponsePayload(
                  topic, partition, offset, metadata, error
              )
              for topic, partitions in response.topics
              for partition, offset, metadata, error in partitions
          ]
docs: Decode OffsetFetchResponse to OffsetFetchResponsePayloads
  
          Arguments:
              response: OffsetFetchResponse