code: def test_iterative_updates(self):
      data = np.concatenate([zero, one, two], axis=0)
      dhnet_full = algorithms.DiscreteHopfieldNetwork(mode="sync")
      dhnet_full.train(data)
  
      dhnet_iterative = algorithms.DiscreteHopfieldNetwork(mode="sync")
      for digit in [zero, one, two]:
          dhnet_iterative.train(digit)
  
      np.testing.assert_array_almost_equal(
          dhnet_iterative.weight, dhnet_full.weight
      )
  
file_path: neupy/tests/algorithms/memory/test_discrete_hn.py
imports: import numpy
  from neupy import algorithms
  from algorithms.memory.data import zero, one, two, half_one, half_zero, half_two
  from base import BaseTestCase
label_desc: Use image node_id 10 for calling the DiscreteHopfieldNetworkTestCase obj's underlying member method code with example usage: obj.test_iterative_updates() without return types