docstr: 0 for CreateTime; 1 for LogAppendTime; None if unsupported.
  
  Value is determined by broker; produced messages should always set to 0
  Requires Kafka >= 0.10 / message version >= 1
code: def timestamp_type(self):
      """0 for CreateTime; 1 for LogAppendTime; None if unsupported.
  
      Value is determined by broker; produced messages should always set to 0
      Requires Kafka >= 0.10 / message version >= 1
      """
      if self._magic == 0:
          return None
      elif self._attributes & self.TIMESTAMP_TYPE_MASK:
          return 1
      else:
          return 0
  
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 2 for calling the LegacyRecordBatch obj's underlying member method code with example usage: obj.timestamp_type() and returns: None, int, int