code: def __repr__(self):
      return (
          "LegacyRecord(offset={!r}, timestamp={!r}, timestamp_type={!r},"
          " key={!r}, value={!r}, crc={!r})".format(
              self._offset,
              self._timestamp,
              self._timestamp_type,
              self._key,
              self._value,
              self._crc,
          )
      )
  
imports: import struct
  import time
  from kafka.record.abc import ABCRecord, ABCRecordBatch, ABCRecordBatchBuilder
  from kafka.record.util import calc_crc32
  from kafka.codec import gzip_encode, snappy_encode, lz4_encode, lz4_encode_old_kafka, gzip_decode, snappy_decode, lz4_decode, lz4_decode_old_kafka
  import kafka.codec
  from kafka.errors import CorruptRecordException, UnsupportedCodecError
label_desc: Use image node_id 9 for calling the LegacyRecord obj's underlying member method code with example usage: obj.__repr__() and returns: str