code: def test_shape_error():
      A = MatrixSymbol("A", 2, 3)
      B = MatrixSymbol("B", 3, 3)
      raises(ShapeError, lambda: MatAdd(A, B))
  
      A = MatrixSymbol("A", 3, 2)
      raises(ShapeError, lambda: MatAdd(A, B))
  
file_path: sympy/sympy/matrices/expressions/tests/test_matadd.py
imports: from sympy.matrices.expressions import MatrixSymbol, MatAdd, MatPow, MatMul
  from sympy.matrices.expressions.special import GenericZeroMatrix, ZeroMatrix
  from sympy.matrices.exceptions import ShapeError
  from sympy.matrices import eye, ImmutableMatrix
  from sympy.core import Add, Basic, S
  from sympy.core.add import add
  from sympy.testing.pytest import XFAIL, raises
label_desc: Use image node_id 9 for calling a global function with example usage: test_shape_error() without return types