code: def __init__(
      self,
      transport,
      allowed_client_types,
      default_protocol=THeaderSubprotocolID.BINARY,
  ):
      self._transport = transport
      self._client_type = THeaderClientType.HEADERS
      self._allowed_client_types = allowed_client_types
  
      self._read_buffer = BufferIO(b"")
      self._read_headers = {}
  
      self._write_buffer = BufferIO()
      self._write_headers = {}
      self._write_transforms = []
  
      self.flags = 0
      self.sequence_id = 0
      self._protocol_id = default_protocol
      self._max_frame_size = HARD_MAX_FRAME_SIZE
  
imports: import struct
  import zlib
  from thrift.compat import BufferIO, byte_index
  from thrift.protocol.TBinaryProtocol import TBinaryProtocol
  from thrift.protocol.TCompactProtocol import TCompactProtocol, readVarint, writeVarint
  from thrift.Thrift import TApplicationException
  from thrift.transport.TTransport import CReadableTransport, TMemoryBuffer, TTransportBase, TTransportException
label_desc: Use image node_id 1 to create a new THeaderTransport object from inherited base classes: TTransportBase, CReadableTransport with example: obj = THeaderTransport(transport, allowed_client_types, default_protocol)