code: def test_no_dynamic_stacking(fit_helper):
      """Tests that dynamic stacking does not run if stacking is disabled."""
      fit_args = dict(
          hyperparameters={"DUMMY": {}},
          dynamic_stacking=True,
          fit_weighted_ensemble=False,
          num_stack_levels=0,
          ag_args_ensemble={
              "fold_fitting_strategy": "sequential_local"
          },
      )
      dataset_name = "adult"
      extra_metrics = list(METRICS[BINARY])
  
      predictor = fit_helper.fit_and_validate_dataset(
          dataset_name=dataset_name,
          fit_args=fit_args,
          extra_metrics=extra_metrics,
          expected_model_count=1,
          refit_full=False,
      )
      assert predictor._stacked_overfitting_occurred is None
  
file_path: autogluon/tabular/tests/unittests/dynamic_stacking/test_dynamic_stacking.py
imports: import shutil
  import pytest
  from autogluon.core.constants import BINARY
  from autogluon.core.metrics import METRICS
label_desc: Use image node_id 3 for calling a global function with example usage: test_no_dynamic_stacking(fit_helper) without return types