code: def spawn_worker(params):
      
      setup_logging(params)
      log.info("Adding worker: idx=%s\tconcurrency=%s\tresults=%s", params.worker_index, params.concurrency,
               params.report)
      worker = Worker(params)
      worker.start()
      worker.join()
docs: This method has to be module level function
  
      :type params: Params