code: def test_map_effects():
      """Test ANOVA effects parsing."""
      selection, names = _map_effects(n_factors=2, effects="A")
      assert names == ["A"]
  
      selection, names = _map_effects(n_factors=2, effects=["A", "A:B"])
      assert names == ["A", "A:B"]
  
      selection, names = _map_effects(n_factors=3, effects="A*B")
      assert names == ["A", "B", "A:B"]
  
      # XXX this might be wrong?
      selection, names = _map_effects(n_factors=3, effects="A*C")
      assert names == ["A", "B", "A:B", "C", "A:C"]
  
      pytest.raises(ValueError, _map_effects, n_factors=2, effects="C")
  
      pytest.raises(
          ValueError, _map_effects, n_factors=27, effects="all"
      )
  
file_path: mne-python/mne/stats/tests/test_parametric.py
imports: from functools import partial
  from itertools import product
  import numpy
  import pytest
  import scipy.stats
  from numpy.testing import assert_allclose, assert_array_almost_equal, assert_array_less
  import mne
  from mne.stats.parametric import _map_effects, f_mway_rm, f_threshold_mway_rm
label_desc: Use image node_id 2 for calling a global function with example usage: test_map_effects() without return types