code: def test_bad_resources(ray_start_2_cpus):
      with pytest.raises(ValueError):
          WorkerGroup(num_workers=-1)
  
      with pytest.raises(ValueError):
          WorkerGroup(num_cpus_per_worker=-1)
  
      with pytest.raises(ValueError):
          WorkerGroup(num_gpus_per_worker=-1)
  
imports: import time
  from collections import defaultdict
  import pytest
  import ray
  import ray._private.ray_constants
  from ray.train._internal.worker_group import Worker, WorkerGroup, WorkerMetadata
label_desc: Use image node_id 16 for calling a global function with example usage: test_bad_resources(ray_start_2_cpus) without return types