

def test_Idx_func_args():
    (i, a, b) = symbols('i a b', integer=True)
    ii = Idx(i)
    assert (ii.func(*ii.args) == ii)
    ii = Idx(i, a)
    assert (ii.func(*ii.args) == ii)
    ii = Idx(i, (a, b))
    assert (i.func(*ii.args) == ii)

dataset/ETHPy150Open sympy/sympy/sympy/tensor/tests/test_indexed.py test_Idx_func_args/VarMisuse@87/98 `ii`->`i`