class_docstr: Base interface for a server, which must have a serve() method.
  
  Three constructors for all servers:
  1) (processor, serverTransport)
  2) (processor, serverTransport, transportFactory, protocolFactory)
  3) (processor, serverTransport,
      inputTransportFactory, outputTransportFactory,
      inputProtocolFactory, outputProtocolFactory)
class_docstr_tok: ["Base","interface","for","a","server",",","which","must","have","a","serve","(",")","method",".","Three","constructors","for","all","servers",":","1",")","(","processor",",","serverTransport",")","2",")","(","processor",",","serverTransport",",","transportFactory",",","protocolFactory",")","3",")","(","processor",",","serverTransport",",","inputTransportFactory",",","outputTransportFactory",",","inputProtocolFactory",",","outputProtocolFactory",")"]
code: def __initArgs__(
      self,
      processor,
      serverTransport,
      inputTransportFactory,
      outputTransportFactory,
      inputProtocolFactory,
      outputProtocolFactory,
  ):
      self.processor = processor
      self.serverTransport = serverTransport
      self.inputTransportFactory = inputTransportFactory
      self.outputTransportFactory = outputTransportFactory
      self.inputProtocolFactory = inputProtocolFactory
      self.outputProtocolFactory = outputProtocolFactory
  
      input_is_header = isinstance(
          self.inputProtocolFactory, THeaderProtocolFactory
      )
      output_is_header = isinstance(
          self.outputProtocolFactory, THeaderProtocolFactory
      )
      if (
          any((input_is_header, output_is_header))
          and input_is_header != output_is_header
      ):
          raise ValueError(
              "THeaderProtocol servers require that both the input and "
              "output protocols are THeaderProtocol."
          )
  
imports: from six.moves import queue
  import logging
  import os
  import threading
  from thrift.protocol import TBinaryProtocol
  from thrift.protocol.THeaderProtocol import THeaderProtocolFactory
  from thrift.transport import TTransport
label_desc: Use image node_id 2 for calling the TServer obj's underlying member method code with example usage: obj.__initArgs__(processor, serverTransport, inputTransportFactory, outputTransportFactory, inputProtocolFactory, outputProtocolFactory) without return types