<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sg_regularizer_loss(scale=1.0):
 r""" Get regularizer losss Args: scale: A scalar. A weight applied to regularizer loss """

    return scale * tf.reduce_mean(tf.get_collection(tf.GraphKeys.REGULARIZATION_LOSSES))