code: def test_nonbagged_model_without_total_resources_but_with_model_resources(
      mock_system_resources_ctx_mgr, mock_num_cpus, mock_num_gpus
  ):
      with mock_system_resources_ctx_mgr(
          num_cpus=mock_num_cpus, num_gpus=mock_num_gpus
      ):
          model_base = DummyModel(
              hyperparameters={
                  "ag_args_fit": {"num_cpus": 99999, "num_gpus": 99999}
              }
          )
          with pytest.raises(AssertionError) as e:
              model_base._preprocess_fit_resources()
  
          ag_args_fit = {"num_cpus": 2, "num_gpus": 2}
          model_base = DummyModel(
              hyperparameters={"ag_args_fit": ag_args_fit}
          )
          resources = model_base._preprocess_fit_resources()
          assert resources == ag_args_fit
  
imports: import pytest
  from autogluon.common.utils.resource_utils import ResourceManager
  from autogluon.core.models.ensemble.bagged_ensemble_model import BaggedEnsembleModel
  from autogluon.tabular.models import AbstractModel
label_desc: Use image node_id 10 for calling a global function with example usage: test_nonbagged_model_without_total_resources_but_with_model_resources(mock_system_resources_ctx_mgr, mock_num_cpus, mock_num_gpus) without return types