code: def test_numpy_compare(self, n):
      a = np.array(
          [[0.1231101, 0.72381381], [0.28748201, 0.43036511]]
      ).astype(config.floatX)
      A = matrix("A", dtype=config.floatX)
      A.tag.test_value = a
      Q = matrix_power(A, n)
      n_p = np.linalg.matrix_power(a, n)
      assert np.allclose(n_p, Q.get_test_value())
  
imports: import numpy
  import numpy.linalg
  import pytest
  from numpy import inf
  from numpy.testing import assert_array_almost_equal
  import pytensor
  from pytensor import function
  from pytensor.configdefaults import config
  from pytensor.tensor.math import _allclose
  from pytensor.tensor.nlinalg import SVD, Eig, MatrixInverse, TensorInv, det, eig, eigh, lstsq, matrix_dot, matrix_inverse, matrix_power, norm, pinv, qr, slogdet, svd, tensorinv, tensorsolve, trace
  from pytensor.tensor.type import lmatrix, lscalar, matrix, scalar, tensor3, tensor4, vector
  from tests import unittest_tools
label_desc: Use image node_id 1 for calling the TestMatrixPower obj's underlying member method code with example usage: obj.test_numpy_compare(n) without return types