def METHOD_NAME(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,
        )