code: def test_basic(self):
      A = np.array([[1, 2], [3, 4]])
      mA = matrix(A)
      assert_(np.all(mA.A == A))
  
      B = bmat("A,A;A,A")
      C = bmat([[A, A], [A, A]])
      D = np.array(
          [[1, 2, 1, 2], [3, 4, 3, 4], [1, 2, 1, 2], [3, 4, 3, 4]]
      )
      assert_(np.all(B.A == D))
      assert_(np.all(C.A == D))
  
      E = np.array([[5, 6], [7, 8]])
      AEresult = matrix([[1, 2, 5, 6], [3, 4, 7, 8]])
      assert_(np.all(bmat([A, E]) == AEresult))
  
      vec = np.arange(5)
      mvec = matrix(vec)
      assert_(mvec.shape == (1, 5))
  
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
  from numpy.matrixlib import mat
label_desc: Use image node_id 1 for calling the TestCtor obj's underlying member method code with example usage: obj.test_basic() without return types