human
I wrote the below code

    def decorator(func):
        _checks[name] = func
        return func
    if func:
        return decorator(func)
    return decorator

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

def register(name, func=None):