def input_validates_with_args(
    *args_validators, **kwargs_validators
):
    def decorator(func):
        @functools.wraps(func)
        def wrapper(*args, **kwargs):
            _input_validates_with_args(
                args_validators, kwargs_validators,
                *args, **kwargs
            )
            return func(*args, **kwargs)
        return wrapper
    return decorator
Decorator to validate input.
dataset/ETHPy150Open openstack/compass-core/compass/db/api/utils.py/input_validates_with_args