code: def test_rbm_storage(self):
      data = self.data
      network = algorithms.RBM(
          n_visible=4,
          n_hidden=1,
          step=0.1,
          batch_size=10,
      )
      network.train(data, epochs=500)
  
      stored_network = pickle.dumps(network)
      loaded_network = pickle.loads(stored_network)
  
      network_hidden = network.visible_to_hidden(data)
      loaded_network_hidden = loaded_network.visible_to_hidden(data)
  
      np.testing.assert_array_almost_equal(
          loaded_network_hidden, network_hidden
      )
  
      network_visible = network.hidden_to_visible(network_hidden)
      loaded_network_visible = loaded_network.hidden_to_visible(
          loaded_network_hidden
      )
  
      np.testing.assert_array_almost_equal(
          loaded_network_visible, network_visible
      )
  
file_path: neupy/tests/algorithms/rbm/test_rbm.py
imports: import pickle
  import numpy
  from neupy import algorithms
  from neupy.utils import asfloat
  from base import BaseTestCase
label_desc: Use image node_id 4 for calling the BernoulliRBMTestCase obj's underlying member method code with example usage: obj.test_rbm_storage() without return types