class_docstr: Server with a fixed size pool of threads which service requests.
class_docstr_tok: ["Server","with","a","fixed","size","pool","of","threads","which","service","requests","."]
docstr: Set the number of worker threads that should be created
docstr_tok: ["Set","the","number","of","worker","threads","that","should","be","created"]
code: def setNumThreads(self, num):
      """Set the number of worker threads that should be created"""
      self.threads = num
  
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 TThreadPoolServer obj's underlying member method code with example usage: obj.setNumThreads(num) without return types