code: def plot_rbm_components(rbm_network):
      session = tensorflow_session()
      weight = session.run(rbm_network.weight)
  
      plt.figure(figsize=(10, 10))
      plt.suptitle("RBM componenets", size=16)
  
      for index, image in enumerate(weight.T, start=1):
          plt.subplot(10, 10, index)
          plt.imshow(image.reshape((28, 28)), cmap=plt.cm.gray)
  
          plt.xticks([])
          plt.yticks([])
  
      plt.show()
  
imports: import matplotlib.pyplot
  from sklearn import datasets
  from neupy import algorithms, utils
  from neupy.utils import asfloat, tensorflow_session
label_desc: Use image node_id 1 for calling a global function with example usage: plot_rbm_components(rbm_network) without return types