code: def test_min_periods(series, minp, roll_func, step):
      result = getattr(
          series.rolling(len(series) + 1, min_periods=minp, step=step),
          roll_func,
      )()
      expected = getattr(
          series.rolling(len(series), min_periods=minp, step=step),
          roll_func,
      )()
      nan_mask = isna(result)
      tm.assert_series_equal(nan_mask, isna(expected))
  
      nan_mask = ~nan_mask
      tm.assert_almost_equal(result[nan_mask], expected[nan_mask])
  
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 6 for calling a global function with example usage: test_min_periods(series, minp, roll_func, step) without return types