code: def test_matrix_multiply_by_1d_vector(self):
      # Ticket #473
      def mul():
          np.mat(np.eye(2)) * np.ones(2)
  
      assert_raises(ValueError, mul)
  
imports: import numpy
  from numpy.testing import assert_, assert_equal, assert_raises
label_desc: Use image node_id 3 for calling the TestRegression obj's underlying member method code with example usage: obj.test_matrix_multiply_by_1d_vector() without return types