code: def test_basic(self):
      import numpy.linalg as linalg
  
      A = np.array([[1.0, 2.0], [3.0, 4.0]])
      mA = matrix(A)
  
      B = np.identity(2)
      for i in range(6):
          assert_(np.allclose((mA**i).A, B))
          B = np.dot(B, A)
  
      Ainv = linalg.inv(A)
      B = np.identity(2)
      for i in range(6):
          assert_(np.allclose((mA**-i).A, B))
          B = np.dot(B, Ainv)
  
      assert_(np.allclose((mA * mA).A, np.dot(A, A)))
      assert_(np.allclose((mA + mA).A, (A + A)))
      assert_(np.allclose((3 * mA).A, (3 * A)))
  
      mA2 = matrix(A)
      mA2 *= 3
      assert_(np.allclose(mA2.A, 3 * A))
  
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 1 for calling the TestAlgebra obj's underlying member method code with example usage: obj.test_basic() without return types