code: def test_QR():
      Q_, R = qr(X)
      assert Q_.shape == R.shape == X.shape
      assert ask(Q.orthogonal(Q_))
      assert ask(Q.upper_triangular(R))
  
file_path: sympy/sympy/matrices/expressions/tests/test_factorizations.py
imports: from sympy.matrices.expressions.factorizations import lu, LofCholesky, qr, svd
  from sympy.assumptions.ask import Q, ask
  from sympy.core.symbol import Symbol
  from sympy.matrices.expressions.matexpr import MatrixSymbol
label_desc: Use image node_id 3 for calling a global function with example usage: test_QR() without return types