code: def test_num_folds(fit_helper):
      """Tests that num_folds works"""
      fit_args = dict(
          hyperparameters={
              "DUMMY": {"ag_args_ensemble": {"num_folds": 3}}
          },
          fit_weighted_ensemble=False,
          num_bag_folds=7,
          num_bag_sets=2,
      )
      dataset_name = "adult"
  
      predictor = fit_helper.fit_and_validate_dataset(
          dataset_name=dataset_name,
          fit_args=fit_args,
          expected_model_count=1,
          refit_full=False,
          delete_directory=False,
      )
      leaderboard = predictor.leaderboard(extra_info=True)
      # 3 folds * 2 sets = 6
      assert leaderboard.iloc[0]["num_models"] == 6
      shutil.rmtree(predictor.path, ignore_errors=True)
  
file_path: autogluon/tabular/tests/unittests/edgecases/test_edgecases.py
imports: import shutil
  from autogluon.core.constants import BINARY
  from autogluon.core.metrics import METRICS
label_desc: Use image node_id 7 for calling a global function with example usage: test_num_folds(fit_helper) without return types