code: def test_scalar_type_pow(self):
      m = matrix([[1, 2], [3, 4]])
      for scalar_t in [np.int8, np.uint8]:
          two = scalar_t(2)
          assert_array_almost_equal(m**2, m**two)
  
imports: import collections.abc
  import numpy
  from numpy import matrix, asmatrix, bmat
  from numpy.testing import assert_, assert_equal, assert_almost_equal, assert_array_equal, assert_array_almost_equal, assert_raises
  from numpy.linalg import matrix_power
label_desc: Use image node_id 3 for calling the TestAlgebra obj's underlying member method code with example usage: obj.test_scalar_type_pow() without return types