def rec_repr(record):
    """Return the string representation of the consumer record.

    :param record: Record fetched from the Kafka topic.
    :type record: kafka.consumer.fetcher.ConsumerRecord
    :return: String representation of the consumer record.
    :rtype: str | unicode
    """
    return 'Record(topic={}, partition={}, offset={})'.format(
        record.topic, record.partition, record.offset
    )