def replace_output(**output_mapping):
    def decorator(func):
        @functools.wraps(func)
        def wrapper(*args, **kwargs):
            return _replace_output(
                func(*args, **kwargs), **output_mapping
            )
        return wrapper
    return decorator
force reconnect
dataset/ETHPy150Open openstack/compass-core/compass/db/api/utils.py/replace_output--crossover with--dataset/ETHPy150Open gawel/irc3/irc3/plugins/command.py/reconnect