code: def test_time_rule_series(series, sp_func, roll_func):
      sp_stats = pytest.importorskip("scipy.stats")
  
      compare_func = partial(getattr(sp_stats, sp_func), bias=False)
      win = 25
      ser = series[::2].resample("B").mean()
      series_result = getattr(
          ser.rolling(window=win, min_periods=10), roll_func
      )()
      last_date = series_result.index[-1]
      prev_date = last_date - 24 * offsets.BDay()
  
      trunc_series = series[::2].truncate(prev_date, last_date)
      tm.assert_almost_equal(
          series_result.iloc[-1], compare_func(trunc_series)
      )
  
file_path: pandas/pandas/tests/window/test_rolling_skew_kurt.py
imports: from functools import partial
  import numpy
  import pytest
  from pandas import DataFrame, Series, concat, isna, notna
  import pandas._testing
  from pandas.tseries import offsets
label_desc: Use image node_id 3 for calling a global function with example usage: test_time_rule_series(series, sp_func, roll_func) without return types