class_docstr: Non-blocking server.
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."""
      # implement ThreadPool interface
      assert (
          not self.prepared
      ), "Can't change number of threads after start"
      self.threads = num
  
imports: import logging
  import select
  import socket
  import struct
  import threading
  from collections import deque
  from six.moves import queue
  from thrift.transport import TTransport
  from thrift.protocol.TBinaryProtocol import TBinaryProtocolFactory
label_desc: Use image node_id 2 for calling the TNonblockingServer obj's underlying member method code with example usage: obj.setNumThreads(num) without return types