human
I wrote the below code

    def decorator(rhp_fn, registration_name=None):
        'Registers    &    returns    hp_fn    with    registration_name    or    default    name.'
        rhp_name = (registration_name or _default_name(rhp_fn))
        if (rhp_name in _RANGED_HPARAMS):
            raise ValueError(('RangedHParams    set    %s    already    registered.' % rhp_name))
        (args, varargs, keywords, _) = inspect.getargspec(rhp_fn)
        if ((len(args) != 1) or (varargs is not None) or (keywords is not None)):
            raise ValueError('RangedHParams    set    function    must    take    a    single    argument,    the    RangedHParams    object.')
        _RANGED_HPARAMS[rhp_name] = rhp_fn
        return rhp_fn
    if callable(name):
        rhp_fn = name
        return decorator(rhp_fn, registration_name=_default_name(rhp_fn))
    return (lambda rhp_fn: decorator(rhp_fn, name))

What's a good function header?

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

def register_ranged_hparams(name=None):