code: def _read_header(self, pos):
      if self._magic == 0:
          (
              offset,
              length,
              crc,
              magic_read,
              attrs,
          ) = self.HEADER_STRUCT_V0.unpack_from(self._buffer, pos)
          timestamp = None
      else:
          (
              offset,
              length,
              crc,
              magic_read,
              attrs,
              timestamp,
          ) = self.HEADER_STRUCT_V1.unpack_from(self._buffer, pos)
      return offset, length, crc, magic_read, attrs, timestamp
  
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 6 for calling the LegacyRecordBatch obj's underlying member method code with example usage: obj._read_header(pos) and returns: offset,  length,  crc,  magic_read,  attrs,  timestamp