code: def test_rolling_time_series_split():
      """Tests rolling_time_series_split with default values."""
      tscv = RollingTimeSeriesSplit(forecast_horizon=3, max_splits=None)
      assert tscv.forecast_horizon == 3
      assert tscv.min_train_periods == 6
      assert not tscv.expanding_window
      assert not tscv.use_most_recent_splits
      assert tscv.periods_between_splits == 3
      assert tscv.periods_between_train_test == 0
  
      X = np.random.rand(20, 2)
      expected = (
          [  # offset applied, first two observations are not used in CV
              (np.array([2, 3, 4, 5, 6, 7]), np.array([8, 9, 10])),
              (np.array([5, 6, 7, 8, 9, 10]), np.array([11, 12, 13])),
              (
                  np.array([8, 9, 10, 11, 12, 13]),
                  np.array([14, 15, 16]),
              ),
              (
                  np.array([11, 12, 13, 14, 15, 16]),
                  np.array([17, 18, 19]),
              ),
          ]
      )
      assert tscv.get_n_splits(X=X) == 4
      assert_splits_equal(tscv.split(X=X), expected)
  
file_path: greykite/greykite/tests/sklearn/test_cross_validation.py
imports: import numpy
  import pytest
  from greykite.sklearn.cross_validation import RollingTimeSeriesSplit
label_desc: Use image node_id 2 for calling a global function with example usage: test_rolling_time_series_split() without return types