code: def test_issue_9817():
      from sympy.matrices.expressions import Identity
  
      v = MatrixSymbol("v", 3, 1)
      A = MatrixSymbol("A", 3, 3)
      x = Matrix([i + 1 for i in range(3)])
      X = Identity(3)
      quadratic = v.T * A * v
      subbed = quadratic.xreplace({v: x, A: X})
      assert subbed.as_explicit() == Matrix([[14]])
  
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 5 for calling a global function with example usage: test_issue_9817() without return types