code: def __init__(
      self,
      produce_future,
      relative_offset,
      timestamp_ms,
      checksum,
      serialized_key_size,
      serialized_value_size,
      serialized_header_size,
  ):
      super(FutureRecordMetadata, self).__init__()
      self._produce_future = produce_future
      # packing args as a tuple is a minor speed optimization
      self.args = (
          relative_offset,
          timestamp_ms,
          checksum,
          serialized_key_size,
          serialized_value_size,
          serialized_header_size,
      )
      produce_future.add_callback(self._produce_success)
      produce_future.add_errback(self.failure)
  
file_path: kafka-python/kafka/producer/future.py
imports: from __future__ import absolute_import
  import collections
  import threading
  from kafka import errors
  from kafka.future import Future
label_desc: Use image node_id 1 to create a new FutureRecordMetadata object from inherited base classes: Future with example: obj = FutureRecordMetadata(produce_future, relative_offset, timestamp_ms, checksum, serialized_key_size, serialized_value_size, serialized_header_size)