(expr, assumptions)
return expr
>>> from sympy import MatrixSymbol, Q, assuming, refine
    >>> X = MatrixSymbol('X', 2, 2)
    >>> X.T
    X'
    >>> with assuming(Q.symmetric(X)):
    ...     print(refine(X.T))
    X
>>> from sympy import MatrixSymbol, Q, assuming, refine
    >>> X = MatrixSymbol('X', 2, 2)
    >>> X.T
    X'
    >>> with assuming(Q.symmetric(X)):
    ...     print(refine(X.T))
    X
>>> from sympy import MatrixSymbol Q assuming refine >>> X = MatrixSymbol ( X 2 2 ) >>> X . T X >>> with assuming ( Q . symmetric ( X )) : ... print ( refine ( X . T )) X
def refine_Transpose(expr, assumptions):
    """
    >>> from sympy import MatrixSymbol, Q, assuming, refine
    >>> X = MatrixSymbol('X', 2, 2)
    >>> X.T
    X'
    >>> with assuming(Q.symmetric(X)):
    ...     print(refine(X.T))
    X
    """
    if ask(Q.symmetric(expr), assumptions):
        return expr.arg

    return expr
def refine_Transpose ( expr , assumptions ) : if ask ( Q . symmetric ( expr ) , assumptions ) : return expr . arg return expr