human
I wrote the below code

    def decorator(func):
        if (condition is True):
            call = alternative
        elif (condition is False):
            call = func
        else:
            raise ValueError('condition    argument    to    _replaceIf    requires    a    bool,    not    {}'.format(repr(condition)))
        @wraps(func)
        def wrapped(*args, **kwargs):
            return call(*args, **kwargs)
        return wrapped
    return decorator

What's a good function header?

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

def _replaceIf(condition, alternative):