def METHOD_NAME(self):
    resources = {"compute": 1, "CPU": 1}
    if get_use_cuda() is not None:
        resources["CUDA"] = 1
        return WorkerSet([
            Worker(name='concurrent', host='localhost', resources=resources, nthreads=1)
        ])
    else:
        devices = detect()
        return WorkerSet([
            Worker(
                name='concurrent', host='localhost',
                resources=resources,
                nthreads=len(devices['cpus']),
            )
        ])