code: def test_time_stroll_last_window_full(dummy_data):
      df_eda = dummy_data["EDA"]
      fs = 4
  
      def stroll_apply_dummy_func(data, window, stride) -> pd.DataFrame:
          stroll = TimeStridedRolling(
              data, window, [stride], window_idx="end"
          )
          return stroll.apply_func(FuncWrapper(np.min))
  
      window_s = pd.Timedelta("30s")
      stride_s = pd.Timedelta("10s")
      out = stroll_apply_dummy_func(
          df_eda[: fs * 401], window=window_s, stride=stride_s
      )
      assert out.index[-1] == df_eda.index[fs * 400]
  
      out = stroll_apply_dummy_func(
          df_eda[: fs * 409], window=window_s, stride=stride_s
      )
      assert out.index[-1] == df_eda.index[fs * 400]
  
      # -> slicing is include left bound, discard right bound -> so UNTIL index 410
      # i.e. last index in sequence is just without 410 -> last valid full range 400
      out = stroll_apply_dummy_func(
          df_eda[: fs * 410], window=window_s, stride=stride_s
      )
      assert out.index[-1] == df_eda.index[fs * 400]
  
      out = stroll_apply_dummy_func(
          df_eda[: fs * 411], window=window_s, stride=stride_s
      )
      assert out.index[-1] == df_eda.index[fs * 410]
      out = stroll_apply_dummy_func(
          df_eda[: fs * 526], window=window_s, stride=stride_s
      )
      assert out.index[-1] == df_eda.index[fs * 520]
  
imports: import numpy
  import pandas
  import pytest
  from tsflex.features import FuncWrapper
  from tsflex.features.segmenter.strided_rolling import SequenceStridedRolling, StridedRolling, TimeIndexSampleStridedRolling, TimeStridedRolling
  from .utils import dummy_data
label_desc: Use image node_id 4 for calling a global function with example usage: test_time_stroll_last_window_full(dummy_data) and returns: stroll