code: def test_frame(raw, frame, q, step):
      compare_func = partial(scoreatpercentile, per=q)
      result = frame.rolling(50, step=step).quantile(q)
      assert isinstance(result, DataFrame)
      end = range(0, len(frame), step or 1)[-1] + 1
      tm.assert_series_equal(
          result.iloc[-1, :],
          frame.iloc[end - 50 : end, :].apply(
              compare_func, axis=0, raw=raw
          ),
          check_names=False,
      )
  
file_path: pandas/pandas/tests/window/test_rolling_quantile.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_frame(raw, frame, q, step) without return types