code: def test_prod(self):
      x = matrix([[1, 2, 3], [4, 5, 6]])
      assert_equal(x.prod(), 720)
      assert_equal(x.prod(0), matrix([[4, 10, 18]]))
      assert_equal(x.prod(1), matrix([[6], [120]]))
  
      assert_equal(np.prod(x), 720)
      assert_equal(np.prod(x, axis=0), matrix([[4, 10, 18]]))
      assert_equal(np.prod(x, axis=1), matrix([[6], [120]]))
  
      y = matrix([0, 1, 3])
      assert_(y.prod() == 0)
  
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 2 for calling the TestProperties obj's underlying member method code with example usage: obj.test_prod() without return types