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