public static FetchResponseData.PartitionData partitionResponse(TopicIdPartition topicIdPartition, Errors error) {
        return partitionResponse(topicIdPartition.topicPartition().partition(), error);
    }
Convenience method to find the size of a response.

@param version       The version of the response to use.
@param partIterator  The partition iterator.
@return              The response size in bytes.
clients/src/main/java/org/apache/kafka/common/requests/FetchResponse.java