code: def test_IM_MM():
      assert isinstance(MM + IM, ImmutableMatrix)
      assert isinstance(IM + MM, ImmutableMatrix)
      assert isinstance(2 * IM + MM, ImmutableMatrix)
      assert MM.equals(IM)
  
file_path: sympy/sympy/matrices/tests/test_interactions.py
imports: from sympy.core.symbol import symbols
  from sympy.matrices import Matrix, MatrixSymbol, eye, Identity, ImmutableMatrix
  from sympy.matrices.expressions import MatrixExpr, MatAdd
  from sympy.matrices.matrixbase import classof
  from sympy.testing.pytest import raises
label_desc: Use image node_id 1 for calling a global function with example usage: test_IM_MM() without return types