code: def decode_offset_commit_response(cls, response):
          
          return [
              kafka.structs.OffsetCommitResponsePayload(topic, partition, error)
              for topic, partitions in response.topics
              for partition, error in partitions
          ]
docs: Decode OffsetCommitResponse to an OffsetCommitResponsePayload
  
          Arguments:
              response: OffsetCommitResponse