human
Here's a good function header given the following:
I wrote the below code

    def decorator(hp_fn, registration_name=None):
        'Registers    &    returns    hp_fn    with    registration_name    or    default    name.'
        hp_name = (registration_name or _default_name(hp_fn))
        if (hp_name in _HPARAMS):
            raise ValueError(('HParams    set    %s    already    registered.' % hp_name))
        _HPARAMS[hp_name] = hp_fn
        return hp_fn
    if callable(name):
        hp_fn = name
        return decorator(hp_fn, registration_name=_default_name(hp_fn))
    return (lambda hp_fn: decorator(hp_fn, name))

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

def register_hparams(name=None):