def convert(**kwargs):
    preprocessors = dict([(k, _get_preprocessor_loader(v["type"]))
                          for k, v in kwargs.items()])

    def wrapper(func):
        func._meta_setdefault("preprocessors", {})
        func._meta_get("preprocessors").update(preprocessors)
        return func
    return wrapper
Decorator to define resource transformation(s) on scenario parameters.
dataset/ETHPy150Open openstack/rally/rally/task/types.py/convert