code: def test_inverse_matpow_canonicalization():
      A = MatrixSymbol("A", 3, 3)
      assert (
          Inverse(MatPow(A, 3)).doit() == MatPow(Inverse(A), 3).doit()
      )
  
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 4 for calling a global function with example usage: test_inverse_matpow_canonicalization() without return types