def select(index, *decorators):
    """
    A meta-decorator that applies one-of-N possible decorators based
    on the index. The index may be a boolean value for selecting
    between two options.

    """
    def wrapped(*args, **kwargs):
        return decorators[int(index)](*args, **kwargs)
    return wrapped