code: def __call__(self, network):
      cost = asfloat(0)
  
      for (layer, varname), variable in network.variables.items():
          if varname not in self.exclude and variable.trainable:
              cost += self.function(variable, *self.args, **self.kwargs)
  
      return cost
  
file_path: neupy/neupy/algorithms/gd/regularizers.py
imports: from __future__ import division
  from functools import wraps
  import tensorflow
  from neupy.utils import asfloat
label_desc: Use image node_id 2 for calling the Regularizer obj's underlying member method code with example usage: obj.__call__(network) and returns: cost