code: def test_discrete_bam_storage(self):
      network = algorithms.DiscreteBAM(mode="sync")
      network.train(self.data, self.hints)
  
      stored_network = pickle.dumps(network)
      loaded_network = pickle.loads(stored_network)
  
      network_prediction = network.predict(self.data)
      loaded_network_prediction = loaded_network.predict(self.data)
  
      np.testing.assert_array_almost_equal(
          loaded_network_prediction[0], network_prediction[0]
      )
  
      np.testing.assert_array_almost_equal(
          loaded_network_prediction[1], network_prediction[1]
      )
  
file_path: neupy/tests/algorithms/memory/test_bam.py
imports: import pickle
  import numpy
  from neupy import algorithms
  from neupy.exceptions import NotTrained
  from algorithms.memory.data import zero, one, half_one, half_zero
  from base import BaseTestCase
  from helpers import vectors_for_testing
label_desc: Use image node_id 4 for calling the BAMTestCase obj's underlying member method code with example usage: obj.test_discrete_bam_storage() without return types