def test_deriv_noncommutative():
    A = Symbol("A", commutative=False)
    f = Function("f")
    x = Symbol("x")
    assert A*f(x)*A == f(x)*A**2
    assert A*f(x).diff(x)%A == f(x).diff(x) * A**2
dataset/ETHPy150Open sympy/sympy/sympy/core/tests/test_diff.py/test_deriv_noncommutative/operator `*` -> `%`