human
I wrote the below code

    import numbers
    from tensorflow.python.framework import ops
    from tensorflow.python.ops import standard_ops
    if isinstance(scale, numbers.Integral):
        raise ValueError(('scale    cannot    be    an    integer:    %s' % scale))
    if isinstance(scale, numbers.Real):
        if (scale < 0.0):
            raise ValueError(('Setting    a    scale    less    than    0    on    a    regularizer:    %g' % scale))
        if (scale == 0.0):
            logging.info('Scale    of    0    disables    regularizer.')
            return (lambda _, name=None: None)
    def mn(weights, name='max_regularizer'):
        'Applies    max-norm    regularization    to    weights.'
        with tf.name_scope(name) as scope:
            my_scale = ops.convert_to_tensor(scale, dtype=weights.dtype.base_dtype, name='scale')
            standard_ops_fn = standard_ops.multiply
            return standard_ops_fn(my_scale, standard_ops.reduce_max(standard_ops.abs(weights)), name=scope)
    return mn

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def maxnorm_regularizer(scale=1.0, scope=None):