code: def test_exponentiation():
      w = omega
      assert w**2 == w * w
      assert w**3 == w * w * w
      assert w ** (w + 1) == Ordinal(OmegaPower(omega + 1, 1))
      assert (w**w) * (w**w) == w ** (w * 2)
  
file_path: sympy/sympy/sets/tests/test_ordinals.py
imports: from sympy.sets.ordinals import Ordinal, OmegaPower, ord0, omega
  from sympy.testing.pytest import raises
label_desc: Use image node_id 7 for calling a global function with example usage: test_exponentiation() without return types