def test_issue_6631():
    assert ((-1)**(I)).is_real is True
    assert ((-1)**(I*2)).is_real is True
    assert ((-1)**(I/2)).is_real is True
    assert ((-1)**(I*S.Pi)).is_real is True
    assert (I**(I + 2)).is_real is True
dataset/ETHPy150Open sympy/sympy/sympy/core/tests/test_assumptions.py/test_issue_6631/original