code: def test_inverse_non_invertible():
      raises(NonInvertibleMatrixError, lambda: ZeroMatrix(n, n).I)
      raises(NonInvertibleMatrixError, lambda: OneMatrix(2, 2).I)
  
file_path: sympy/sympy/matrices/expressions/tests/test_inverse.py
imports: from sympy.core import symbols, S
  from sympy.matrices.expressions import MatrixSymbol, Inverse, MatPow, ZeroMatrix, OneMatrix
  from sympy.matrices.exceptions import NonInvertibleMatrixError, NonSquareMatrixError
  from sympy.matrices import eye, Identity
  from sympy.testing.pytest import raises
  from sympy.assumptions.ask import Q
  from sympy.assumptions.refine import refine
label_desc: Use image node_id 2 for calling a global function with example usage: test_inverse_non_invertible() without return types