code: def test_rolling_agg():
      df = pd.DataFrame(np.random.rand(4, 3), columns=list("abc"))
      df2 = md.DataFrame(df, chunk_size=3)
  
      r = df2.rolling(3).agg("max")
      expected = df.rolling(3).agg("max")
  
      assert r.shape == df.shape
      assert r.index_value is df2.index_value
      pd.testing.assert_index_equal(
          r.columns_value.to_pandas(), expected.columns
      )
      pd.testing.assert_series_equal(r.dtypes, df2.dtypes)
  
      r = tile(r)
      for c in r.chunks:
          assert c.shape == c.inputs[0].shape
          assert c.index_value is c.inputs[0].index_value
          pd.testing.assert_index_equal(
              c.columns_value.to_pandas(), expected.columns
          )
          pd.testing.assert_series_equal(c.dtypes, expected.dtypes)
  
imports: import numpy
  import pandas
  import pytest
  from .....None import dataframe
  from .....core import tile
label_desc: Use image node_id 2 for calling a global function with example usage: test_rolling_agg() without return types