code: def L1(tensor, wd=0.001):
      """L1.
  
      Computes the L1 norm of a tensor:
  
        output = sum(|t|) * wd
  
      Arguments:
          tensor: `Tensor`. The tensor to apply regularization.
          wd: `float`. The decay.
  
      Returns:
          The regularization `Tensor`.
  
      """
      return tf.multiply(
          tf.reduce_sum(tf.abs(tensor)), wd, name="L1-Loss"
      )
  
imports: from __future__ import division, print_function, absolute_import
  import tensorflow.compat.v1
  from .utils import get_from_module
label_desc: Use image node_id 3 for calling a global function with example usage: L1(tensor, wd) and returns: tf