code: def test_frame(raw, frame, sp_func, roll_func):
      sp_stats = pytest.importorskip("scipy.stats")
  
      compare_func = partial(getattr(sp_stats, sp_func), bias=False)
      result = getattr(frame.rolling(50), roll_func)()
      assert isinstance(result, DataFrame)
      tm.assert_series_equal(
          result.iloc[-1, :],
          frame.iloc[-50:, :].apply(compare_func, axis=0, raw=raw),
          check_names=False,
      )
  
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 2 for calling a global function with example usage: test_frame(raw, frame, sp_func, roll_func) without return types