code: def test_nonbagged_model_with_total_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()
          total_resources = {
              "num_cpus": 1,
              "num_gpus": 0,
          }
          resources = model_base._preprocess_fit_resources(
              total_resources=total_resources
          )
          assert resources == total_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 6 for calling a global function with example usage: test_nonbagged_model_with_total_resources(mock_system_resources_ctx_mgr, mock_num_cpus, mock_num_gpus) without return types