code: def test_nonbagged_model_without_total_resources_and_without_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={})
          resources = model_base._preprocess_fit_resources()
          (
              default_model_num_cpus,
              default_model_num_gpus,
          ) = model_base._get_default_resources()
          default_model_resources = {
              "num_cpus": min(
                  default_model_num_cpus,
                  ResourceManager.get_cpu_count(),
              ),
              "num_gpus": min(
                  default_model_num_gpus,
                  ResourceManager.get_gpu_count(),
              ),
          }
          assert resources == default_model_resources
  
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 11 for calling a global function with example usage: test_nonbagged_model_without_total_resources_and_without_model_resources(mock_system_resources_ctx_mgr, mock_num_cpus, mock_num_gpus) without return types