code: def test_with_weight_decay(self):
      hn = algorithms.HebbRule(
          n_inputs=2,
          n_outputs=1,
          n_unconditioned=1,
          step=1,
          verbose=False,
          decay_rate=0.1,
      )
  
      # Test learning limit
      hn.train(X, epochs=50)
      self.assertEqual(np.round(hn.weight[1, 0], 2), 10)
  
      hn.train(X, epochs=50)
      self.assertEqual(np.round(hn.weight[1, 0], 2), 10)
  
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 4 for calling the HebbRuleTestCase obj's underlying member method code with example usage: obj.test_with_weight_decay() without return types