code: def test_repeated_measures_unbalanced_data():
      assert_raises(
          ValueError,
          AnovaRM,
          data.iloc[1:48, :],
          "DV",
          "id",
          within=["A", "B"],
      )
  
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 6 for calling a global function with example usage: test_repeated_measures_unbalanced_data() without return types