code: def _check_cutoffs_against_test_windows(cutoffs, windows, fh, y):
      # We check for the last value. Some windows may be incomplete, with no first
      # value, whereas the last value will always be there.
      fh = check_fh(fh)
      if is_int(fh[-1]):
          expected = np.array(
              [window[-1] - fh[-1] for window in windows]
          )
      elif array_is_timedelta_or_date_offset(fh):
          expected = np.array([])
          for window in windows:
              arg = y.index[window[-1]] - fh[-1]
              val = y.index.get_loc(arg) if arg >= y.index[0] else -1
              expected = np.append(expected, val)
      else:
          raise ValueError(
              f"Provided `fh` type is not supported: {type(fh[-1])}"
          )
      np.testing.assert_array_equal(cutoffs, expected)
  
file_path: sktime/sktime/split/tests/test_split.py
imports: import numpy
  import pytest
  from sktime.forecasting.base import ForecastingHorizon
  from sktime.split import ExpandingWindowSplitter, SlidingWindowSplitter
  from sktime.utils.datetime import _coerce_duration_to_int
  from sktime.utils.validation import array_is_datetime64, array_is_int, array_is_timedelta_or_date_offset, is_int
  from sktime.utils.validation.forecasting import check_fh
label_desc: Use image node_id 5 for calling a global function with example usage: _check_cutoffs_against_test_windows(cutoffs, windows, fh, y) without return types