code: def test_matrix_inverse_solve():
      if not imported_scipy:
          raise SkipTest("Scipy needed for the Solve op.")
      A = theano.tensor.dmatrix("A")
      b = theano.tensor.dmatrix("b")
      node = matrix_inverse(A).dot(b).owner
      [out] = inv_as_solve.transform(node)
      assert isinstance(out.owner.op, Solve)
  
file_path: Theano/theano/sandbox/linalg/tests/test_linalg.py
imports: from __future__ import absolute_import, print_function, division
  import numpy
  import numpy.linalg
  import theano
  from theano import tensor, function
  from theano.tensor.basic import _allclose
  from theano.tests.test_rop import break_op
  from theano.tests import unittest_tools
  from theano import config
  from theano.tensor.nlinalg import MatrixInverse
  from theano.tensor import DimShuffle
  from theano.sandbox.linalg.ops import Cholesky, matrix_inverse, Solve, solve, spectral_radius_bound, imported_scipy, inv_as_solve
  from nose.plugins.skip import SkipTest
label_desc: Use image node_id 5 for calling a global function with example usage: test_matrix_inverse_solve() without return types