code: def test_weights(self):
      # Test default weights
      hn = algorithms.HebbRule(
          n_inputs=5,
          n_outputs=1,
          n_unconditioned=2,
          verbose=False,
      )
      np.testing.assert_array_equal(
          hn.weight, np.array([[1, 1, 0, 0, 0]]).T
      )
      np.testing.assert_array_equal(hn.bias, np.array([-0.5]))
  
      # Test custom weights
      random_weight = np.random.random((5, 1))
      hn = algorithms.HebbRule(
          n_inputs=5,
          n_outputs=1,
          n_unconditioned=2,
          weight=random_weight,
          verbose=False,
      )
      np.testing.assert_array_equal(hn.weight, random_weight)
  
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 5 for calling the HebbRuleTestCase obj's underlying member method code with example usage: obj.test_weights() without return types