class_docstr: Keras layer (specification key: `keras`).
  
  Args:
      layer (string): Keras layer class name, see
          `TensorFlow docs <https://www.tensorflow.org/api_docs/python/tf/keras/layers>`__
          (<span style="color:#C00000"><b>required</b></span>).
      l2_regularization (float >= 0.0): Scalar controlling L2 regularization
          (<span style="color:#00C000"><b>default</b></span>: inherit value of parent module).
      name (string): Layer name
          (<span style="color:#00C000"><b>default</b></span>: internally chosen).
      input_spec (specification): <span style="color:#00C000"><b>internal use</b></span>.
      kwargs: Arguments for the Keras layer, see
          `TensorFlow docs <https://www.tensorflow.org/api_docs/python/tf/keras/layers>`__.
code: def regularize(self):
      regularization_loss = super().regularize()
  
      if len(self.keras_layer.losses) > 0:
          regularization_loss += tf.math.add_n(
              inputs=self.keras_layer.losses
          )
  
      return regularization_loss
  
file_path: tensorforce/tensorforce/core/layers/keras.py
imports: import tensorflow
  from tensorforce.core import tf_function, tf_util
  from tensorforce.core.layers import Layer
label_desc: Use image node_id 4 for calling the KerasLayer obj's underlying member method code with example usage: obj.regularize() and returns: regularization_loss