code: def record_overhead(cls, magic):
      assert magic in [0, 1], "Not supported magic"
      if magic == 0:
          return cls.RECORD_OVERHEAD_V0
      else:
          return cls.RECORD_OVERHEAD_V1
  
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 LegacyRecordBatchBuilder obj's underlying member method code with example usage: obj.record_overhead(cls, magic) and returns: cls, cls