code: def test_dynamic_stacking_run_twice_parallel_fold_fitting_strategy(
      fit_helper, dataset_loader_helper, stacked_overfitting_assert_func
  ):
      """Tests that dynamic stacking memory save fit works."""
      ds_args = DS_ARGS_TEST_DEFAULTS.copy()
      ds_args["memory_safe_fits"] = True  # guarantee for sanity
      fit_args = dict(
          hyperparameters={"DUMMY": {}},
          fit_weighted_ensemble=False,
          dynamic_stacking=True,
          num_stack_levels=1,
          num_bag_folds=2,
          num_bag_sets=1,
          time_limit=None,
          ds_args=ds_args,
      )
  
      # Get custom val data (the test data)
      (
          train_data,
          test_data,
          dataset_info,
      ) = dataset_loader_helper.load_dataset(
          name="adult", directory_prefix="./datasets/"
      )
      label = dataset_info["label"]
      allowed_cols = ["age", label]
      train_data = train_data[allowed_cols]
      test_data = test_data[allowed_cols]
  
      for _ in range(2):
          predictor = fit_helper.fit_dataset(
              train_data=train_data,
              init_args=dict(label=label),
              fit_args=fit_args,
              sample_size=1000,
          )
          lb = predictor.leaderboard(test_data, extra_info=True)
          stacked_overfitting_assert_func(lb, predictor, False, False)
          shutil.rmtree(predictor.path)
  
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 6 for calling a global function with example usage: test_dynamic_stacking_run_twice_parallel_fold_fitting_strategy(fit_helper, dataset_loader_helper, stacked_overfitting_assert_func) without return types