code: def test_rolling_corr_cov_pairwise(self, f, roll_frame):
      g = roll_frame.groupby("A")
      r = g.rolling(window=4)
  
      result = getattr(r.B, f)(pairwise=True)
  
      def func(x):
          return getattr(x.B.rolling(4), f)(pairwise=True)
  
      msg = "DataFrameGroupBy.apply operated on the grouping columns"
      with tm.assert_produces_warning(FutureWarning, match=msg):
          expected = g.apply(func)
      tm.assert_series_equal(result, expected)
  
imports: import numpy
  import pytest
  from pandas import DataFrame, DatetimeIndex, Index, MultiIndex, Series, Timestamp, date_range, to_datetime
  import pandas._testing
  from pandas.api.indexers import BaseIndexer
  from pandas.core.groupby.groupby import get_groupby
label_desc: Use image node_id 9 for calling the TestRolling obj's underlying member method code with example usage: obj.test_rolling_corr_cov_pairwise(f, roll_frame) and returns: getattr