code: def _get_windows(cv, y):
      """Generate cv split windows, utility function."""
      train_windows = []
      test_windows = []
      for train, test in cv.split(y):
          train_windows.append(train)
          test_windows.append(test)
      return train_windows, test_windows
  
file_path: sktime/sktime/utils/plotting.py
imports: import math
  from warnings import simplefilter, warn
  import numpy
  import pandas
  from sktime.datatypes import convert_to
  from sktime.utils.validation._dependencies import _check_soft_dependencies
  from sktime.utils.validation.forecasting import check_interval_df, check_y
  from sktime.utils.validation.series import check_consistent_index_type
label_desc: Use image node_id 6 for calling a global function with example usage: _get_windows(cv, y) and returns: train_windows,  test_windows