code: def save_epoch_weight(optimizer):
      """
      Signal processor which save weight update for every
      epoch.
      """
      global weights
      global current_epoch
  
      session = tensorflow_session()
      input_layer_weight = session.run(
          optimizer.network.layers[1].weight
      )
      weights[
          :, current_epoch + 1 : current_epoch + 2
      ] = input_layer_weight
  
file_path: neupy/examples/mlp/gd_algorithms_visualization.py
imports: from functools import partial
  import numpy
  import matplotlib.pyplot
  import matplotlib.patches
  from neupy.utils import asfloat, tensorflow_session
  from neupy import algorithms, layers, utils
label_desc: Use image node_id 3 for calling a global function with example usage: save_epoch_weight(optimizer) without return types