code: def test_resource_not_enough(calculator_type):
      num_cpus = 0
      num_gpus = 0
      num_jobs = 20
  
      calculator = ResourceCalculatorFactory.get_resource_calculator(
          calculator_type=calculator_type
      )
      with pytest.raises(
          Exception,
          match=r"Cannot train model with provided resources! .*",
      ) as e_info:
          resources_info = calculator.get_resources_per_job(
              total_num_cpus=num_cpus,
              total_num_gpus=num_gpus,
              num_jobs=num_jobs,
              minimum_cpu_per_job=1,
              minimum_gpu_per_job=1,
          )
  
file_path: autogluon/core/tests/unittests/ray/test_resource_calculator.py
imports: import pytest
  from autogluon.common.utils.resource_utils import ResourceManager
  from autogluon.core.ray.resources_calculator import CpuResourceCalculator, GpuResourceCalculator, NonParallelGpuResourceCalculator, ResourceCalculatorFactory
label_desc: Use image node_id 6 for calling a global function with example usage: test_resource_not_enough(calculator_type) without return types