code: def test_index_data_type_retention():
      s = pd.Series([0, 1, 2, 3, 4], name="dummy")
  
      ### Int
      sr = SequenceStridedRolling(
          s, window=3, strides=[1], window_idx="begin"
      )
      assert str(sr.index.dtype).startswith("int")
  
      ### Float
      s.index = [0.0, 1.0, 2.0, 3.0, 4.0]
      sr = SequenceStridedRolling(
          s, window=3, strides=[1], window_idx="begin"
      )
      assert str(sr.index.dtype).startswith("float")
  
      ### Time
      s.index = pd.date_range("2020-01-01", freq="1h", periods=5)
      sr = TimeStridedRolling(
          s,
          window=pd.Timedelta(3, unit="h"),
          strides=[pd.Timedelta(1, unit="h")],
          window_idx="begin",
      )
      assert "datetime64" in str(sr.index.dtype)
      assert not str(sr.index.dtype).startswith("int")
      assert not str(sr.index.dtype).startswith("float")
  
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 27 for calling a global function with example usage: test_index_data_type_retention() without return types