code: def test_time_stroll_window_idx(dummy_data):
      for window_idx in ["begin", "middle", "end"]:
          stroll = TimeStridedRolling(
              data=dummy_data[["EDA"]],
              window=pd.Timedelta(seconds=5),
              strides=pd.Timedelta(seconds=5),
              window_idx=window_idx,
          )
  
          f = FuncWrapper(np.mean, output_names="numpy_mean")
          out = stroll.apply_func(f)
          assert "EDA__numpy_mean__w=5s" in out.columns
  
      with pytest.raises(ValueError):
          TimeStridedRolling(
              data=dummy_data[["EDA", "TMP"]],
              window=pd.Timedelta(seconds=5),
              strides=[pd.Timedelta(seconds=2.5)],
              window_idx="invalid name",
          )
  
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 1 for calling a global function with example usage: test_time_stroll_window_idx(dummy_data) without return types