code: def test_repeated_measures_aggregation():
      df1 = AnovaRM(data, "DV", "id", within=["A", "B", "D"]).fit()
      double_data = pd.concat([data, data], axis=0)
      df2 = AnovaRM(
          double_data,
          "DV",
          "id",
          within=["A", "B", "D"],
          aggregate_func=pd.Series.mean,
      ).fit()
  
      assert_frame_equal(df1.anova_table, df2.anova_table)
  
file_path: statsmodels/statsmodels/stats/tests/test_anova_rm.py
imports: from statsmodels.compat.pandas import assert_frame_equal
  from numpy.testing import assert_array_almost_equal, assert_equal, assert_raises
  import pandas
  from statsmodels.stats.anova import AnovaRM
label_desc: Use image node_id 7 for calling a global function with example usage: test_repeated_measures_aggregation() without return types