def output_validates_with_args(**kwargs_validators):
    def decorator(func):
        @functools.wraps(func)
        def wrapper(*args, **kwargs):
            obj = func(*args, **kwargs)
            if isinstance(obj, list):
                for obj_item in obj:
                    _output_validates_with_args(
                        kwargs_validators, obj_item,
                        *args, **kwargs
                    )
            else:
                _output_validates_with_args(
                    kwargs_validators, obj,
                    *args, **kwargs
                )
            return obj
        return wrapper
    return decorator
An overridden destructor method.
dataset/ETHPy150Open openstack/compass-core/compass/db/api/utils.py/output_validates_with_args--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/widgets/window.py/Window.destroy