code: def __init__(
      self, offset, timestamp, timestamp_type, key, value, crc
  ):
      self._offset = offset
      self._timestamp = timestamp
      self._timestamp_type = timestamp_type
      self._key = key
      self._value = value
      self._crc = 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 1 to create a new LegacyRecord object from inherited base classes: ABCRecord with example: obj = LegacyRecord(offset, timestamp, timestamp_type, key, value, crc)