code: def test_transpose_MatAdd_MatMul():
      # Issue 16807
      from sympy.functions.elementary.trigonometric import cos
  
      x = symbols("x")
      M = MatrixSymbol("M", 3, 3)
      N = MatrixSymbol("N", 3, 3)
  
      assert (N + (cos(x) * M)).T == cos(x) * M.T + N.T
  
file_path: sympy/sympy/matrices/expressions/tests/test_transpose.py
imports: from sympy.functions import adjoint, conjugate, transpose
  from sympy.matrices.expressions import MatrixSymbol, Adjoint, trace, Transpose
  from sympy.matrices import eye, Matrix
  from sympy.assumptions.ask import Q
  from sympy.assumptions.refine import refine
  from sympy.core.singleton import S
  from sympy.core.symbol import symbols
label_desc: Use image node_id 2 for calling a global function with example usage: test_transpose_MatAdd_MatMul() without return types