

def test_mixed_indexing():
    X = MatrixSymbol('X', 2, 2)
    Y = MatrixSymbol('Y', 2, 2)
    Z = MatrixSymbol('Z', 2, 2)
    assert ((X * HadamardProduct(Z, Z))[(0, 0)] == (((X[(0, 0)] * Y[(0, 0)]) * Z[(0, 0)]) + ((X[(0, 1)] * Y[(1, 0)]) * Z[(1, 0)])))

dataset/ETHPy150Open sympy/sympy/sympy/matrices/expressions/tests/test_hadamard.py test_mixed_indexing/VarMisuse@49/66 `Y`->`Z`