code: def test_sequence_stroll_indexing():
      s = pd.Series(data=[0, 1, 2, 3, 4], name="dummy")
  
      ## No Force
      sr = SequenceStridedRolling(
          s, window=3, strides=[1], window_idx="begin"
      )
      assert np.all(sr.index == [0, 1])
      sr = SequenceStridedRolling(
          s, window=3, strides=[2], window_idx="begin"
      )
      assert np.all(sr.index == [0])
      sr = SequenceStridedRolling(
          s, window=3, strides=[3], window_idx="begin"
      )
      assert np.all(sr.index == [0])
      sr = SequenceStridedRolling(
          s, window=3, strides=[4], window_idx="begin"
      )
      assert np.all(sr.index == [0])
      sr = SequenceStridedRolling(
          s, window=3, strides=[5], window_idx="begin"
      )
      assert np.all(sr.index == [0])
      sr = SequenceStridedRolling(
          s, window=3, strides=[50], window_idx="begin"
      )
      assert np.all(sr.index == [0])
  
      sr = SequenceStridedRolling(
          s, window=4, strides=[1], window_idx="begin"
      )
      assert np.all(sr.index == [0])
  
      sr = SequenceStridedRolling(
          s, window=5, strides=[1], window_idx="begin"
      )
      assert np.all(sr.index == [])
      sr = SequenceStridedRolling(
          s, window=5, strides=[2], window_idx="begin"
      )
      assert np.all(sr.index == [])
      sr = SequenceStridedRolling(
          s, window=6, strides=[1], window_idx="begin"
      )
      assert np.all(sr.index == [])
      sr = SequenceStridedRolling(
          s, window=6, strides=[2], window_idx="begin"
      )
      assert np.all(sr.index == [])
  
      ## Force
      sr = SequenceStridedRolling(
          s,
          window=3,
          strides=[1],
          window_idx="begin",
          include_final_window=True,
      )
      assert np.all(sr.index == [0, 1, 2])
      sr = SequenceStridedRolling(
          s,
          window=3,
          strides=[2],
          window_idx="begin",
          include_final_window=True,
      )
      assert np.all(sr.index == [0, 2])
      sr = SequenceStridedRolling(
          s,
          window=3,
          strides=[4],
          window_idx="begin",
          include_final_window=True,
      )
      assert np.all(sr.index == [0, 4])
      sr = SequenceStridedRolling(
          s,
          window=3,
          strides=[5],
          window_idx="begin",
          include_final_window=True,
      )
      assert np.all(sr.index == [0])
      sr = SequenceStridedRolling(
          s,
          window=3,
          strides=[50],
          window_idx="begin",
          include_final_window=True,
      )
      assert np.all(sr.index == [0])
  
      sr = SequenceStridedRolling(
          s,
          window=4,
          strides=[1],
          window_idx="begin",
          include_final_window=True,
      )
      assert np.all(sr.index == [0, 1])
  
      sr = SequenceStridedRolling(
          s,
          window=5,
          strides=[1],
          window_idx="begin",
          include_final_window=True,
      )
      assert np.all(sr.index == [0])
      sr = SequenceStridedRolling(
          s,
          window=5,
          strides=[2],
          window_idx="begin",
          include_final_window=True,
      )
      assert np.all(sr.index == [0])
      sr = SequenceStridedRolling(
          s,
          window=6,
          strides=[1],
          window_idx="begin",
          include_final_window=True,
      )
      assert np.all(sr.index == [0])
      sr = SequenceStridedRolling(
          s,
          window=6,
          strides=[2],
          window_idx="begin",
          include_final_window=True,
      )
      assert np.all(sr.index == [0])
  
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 7 for calling a global function with example usage: test_sequence_stroll_indexing() without return types