code: def l1_regularizer(decay, name_filter='weights'):
    
    return regularizer(
        'l1_regularizer',
        lambda x: tf.reduce_sum(tf.abs(x)) *  decay,
        name_filter=name_filter)
docs: Create an l1 regularizer.