code: def test_single_factor_repeated_measures_anova():
      """
      Testing single factor repeated measures anova
      Results reproduces R `ezANOVA` function from library ez
      """
      df = AnovaRM(data.iloc[:16, :], "DV", "id", within=["B"]).fit()
      a = [[1, 7, 22.4, 0.002125452]]
      assert_array_almost_equal(
          df.anova_table.iloc[:, [1, 2, 0, 3]].values, a, decimal=5
      )
  
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 1 for calling a global function with example usage: test_single_factor_repeated_measures_anova() without return types