code: def test_hebb_rule_trainig_exception(self):
      hebb = algorithms.HebbRule(
          n_inputs=2, n_outputs=3, n_unconditioned=1
      )
      err_message = "expected to have 2 features"
  
      with self.assertRaisesRegexp(ValueError, err_message):
          hebb.train(np.ones((6, 3)))
  
file_path: neupy/tests/algorithms/associative/test_hebb.py
imports: import numpy
  from neupy import algorithms
  from base import BaseTestCase
label_desc: Use image node_id 2 for calling the HebbRuleTestCase obj's underlying member method code with example usage: obj.test_hebb_rule_trainig_exception() without return types