code: def __init__(self, pool=False):
      self.threads = []
      if pool:
          self.execute = self.execute_in_pool
          self.pool = ThreadPool(processes=pool)
      else:
          self.execute = self.execute_in_thread
  
file_path: wandb/wandb/vendor/graphql-core-1.1/wandb_graphql/execution/executors/thread.py
imports: from multiprocessing.pool import ThreadPool
  from threading import Thread
  from wandb_promise import Promise
  from .utils import process
label_desc: Use image node_id 1 to create a new ThreadExecutor object from inherited base classes: object with example: obj = ThreadExecutor(pool)