code: def _set_client_type(self, client_type):
      if client_type not in self._allowed_client_types:
          raise TTransportException(
              TTransportException.INVALID_CLIENT_TYPE,
              "Client type %d not allowed by server." % client_type,
          )
      self._client_type = client_type
  
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 12 for calling the THeaderTransport obj's underlying member method code with example usage: obj._set_client_type(client_type) without return types