code: def test_bagging_invalid_resources_per_fold(fold_strategy_cls):
      # resources per fold more than resources to ensemble model
      with pytest.raises(AssertionError) as e:
          _construct_dummy_fold_strategy(
              fold_strategy_cls=fold_strategy_cls,
              num_jobs=8,
              num_folds_parallel=8,
              bagged_resources={"num_cpus": 1, "num_gpus": 1},
              model_base_resources={"num_cpus": 2, "num_gpus": 1},
              model_base_minimum_resources={
                  "num_cpus": 1,
                  "num_gpus": 0.1,
              },
          )
      # resources per fold less than minimum resources
      with pytest.raises(AssertionError) as e:
          _construct_dummy_fold_strategy(
              fold_strategy_cls=fold_strategy_cls,
              num_jobs=8,
              num_folds_parallel=8,
              bagged_resources={"num_cpus": 8, "num_gpus": 1},
              model_base_resources={"num_cpus": 1, "num_gpus": 0.1},
              model_base_minimum_resources={
                  "num_cpus": 1,
                  "num_gpus": 0.5,
              },
          )
  
imports: import time
  import numpy
  import pandas
  import pytest
  from autogluon.core.models.ensemble.bagged_ensemble_model import BaggedEnsembleModel
  from autogluon.core.models.ensemble.fold_fitting_strategy import ParallelLocalFoldFittingStrategy, SequentialLocalFoldFittingStrategy
  from autogluon.tabular.models import AbstractModel
label_desc: Use image node_id 3 for calling a global function with example usage: test_bagging_invalid_resources_per_fold(fold_strategy_cls) without return types