code: def test_keywords(self):
      x = np.array([(1, 2)], dtype=[("a", np.int8), ("b", np.int8)])
      # We must be specific about the endianness here:
      y = x.view(dtype="<i2", type=np.matrix)
      assert_array_equal(y, [[513]])
  
      assert_(isinstance(y, np.matrix))
      assert_equal(y.dtype, np.dtype("<i2"))
  
imports: import numpy
  from numpy.testing import assert_, assert_equal, assert_array_equal
label_desc: Use image node_id 2 for calling the TestView obj's underlying member method code with example usage: obj.test_keywords() without return types