code: def test_time_stroll_apply_func_segment_idxs_empty():
      f = FuncWrapper(np.min, output_names="min")
  
      s = pd.Series(data=np.arange(20), name="dummy")
      s.index = pd.date_range("2020-01-01", freq="1h", periods=20)
      segment_idxs = np.array([])
  
      ## Start idxs
      sr = TimeStridedRolling(
          s,
          window=pd.Timedelta(3, unit="h"),
          segment_start_idxs=segment_idxs,
          window_idx="begin",
      )
      assert np.all(sr.index == [])
      res = sr.apply_func(f)
      assert len(res) == 0
  
      ## End idxs
      sr = TimeStridedRolling(
          s,
          window=pd.Timedelta(3, unit="h"),
          segment_end_idxs=segment_idxs,
          window_idx="begin",
      )
      assert np.all(sr.index == [])
      res = sr.apply_func(f)
      assert len(res) == 0
  
      ## Start and end idxs
      sr = TimeStridedRolling(
          s,
          window=pd.Timedelta(3, unit="h"),
          segment_start_idxs=segment_idxs,
          segment_end_idxs=segment_idxs,
          window_idx="begin",
      )
      assert np.all(sr.index == [])
      res = sr.apply_func(f)
      assert len(res) == 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 24 for calling a global function with example usage: test_time_stroll_apply_func_segment_idxs_empty() without return types