code: def test_create_backtesting_folds_refit_int_no_fixed_gap_allow_incomplete_fold_False(
      capfd, return_all_indexes, expected
  ):
      """
      Test _create_backtesting_folds output when refit is 3, fixed_train_size is
      False, gap=5, remainder, allow_incomplete_fold=False.
      """
      y = pd.Series(np.arange(100))
      y.index = pd.date_range(start="2022-01-01", periods=100, freq="D")
      window_size = 20
      initial_train_size = 70
      gap = 5
      test_size = 7
      refit = 3
      fixed_train_size = False
      allow_incomplete_fold = False
  
      folds = _create_backtesting_folds(
          data=y,
          window_size=window_size,
          initial_train_size=initial_train_size,
          test_size=test_size,
          externally_fitted=False,
          refit=refit,
          fixed_train_size=fixed_train_size,
          gap=gap,
          allow_incomplete_fold=allow_incomplete_fold,
          return_all_indexes=return_all_indexes,
          verbose=True,
      )
  
      out, _ = capfd.readouterr()
      expected_out = (
          "Information of backtesting process\n"
          "----------------------------------\n"
          "Number of observations used for initial training: 70\n"
          "Number of observations used for backtesting: 30\n"
          "    Number of folds: 3\n"
          "    Number of steps per fold: 7\n"
          "    Number of steps to exclude from the end of each train set before test (gap): 5\n"
          "    Last fold has been excluded because it was incomplete.\n\n"
          "Fold: 0\n"
          "    Training:   2022-01-01 00:00:00 -- 2022-03-11 00:00:00  (n=70)\n"
          "    Validation: 2022-03-17 00:00:00 -- 2022-03-23 00:00:00  (n=7)\n"
          "Fold: 1\n"
          "    Training:   2022-01-01 00:00:00 -- 2022-03-11 00:00:00  (n=70)\n"
          "    Validation: 2022-03-24 00:00:00 -- 2022-03-30 00:00:00  (n=7)\n"
          "Fold: 2\n"
          "    Training:   2022-01-01 00:00:00 -- 2022-03-11 00:00:00  (n=70)\n"
          "    Validation: 2022-03-31 00:00:00 -- 2022-04-06 00:00:00  (n=7)\n\n"
      )
  
      assert out == expected_out
      assert folds == expected
  
imports: import pytest
  import numpy
  import pandas
  from skforecast.model_selection.model_selection import _create_backtesting_folds
label_desc: Use image node_id 15 for calling a global function with example usage: test_create_backtesting_folds_refit_int_no_fixed_gap_allow_incomplete_fold_False(capfd, return_all_indexes, expected) without return types