code: def test_frame(raw, frame):
      result = frame.rolling(50).apply(f, raw=raw)
      assert isinstance(result, DataFrame)
      tm.assert_series_equal(
          result.iloc[-1, :],
          frame.iloc[-50:, :].apply(np.mean, axis=0, raw=raw),
          check_names=False,
      )
  
imports: import numpy
  import pytest
  from pandas import DataFrame, Index, MultiIndex, Series, Timestamp, concat, date_range, isna, notna
  import pandas._testing
  from pandas.tseries import offsets
label_desc: Use image node_id 15 for calling a global function with example usage: test_frame(raw, frame) without return types