<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def l1_regularizer(decay, name_filter='weights'):
 """Create an l1 regularizer."""

  return regularizer(
      'l1_regularizer',
      lambda x: tf.reduce_sum(tf.abs(x)) *  decay,
      name_filter=name_filter)