def METHOD_NAME(func):
    condition = condition_class(func)
    for attr in ('__name__', '__module__', '__doc__'):
        setattr(condition, attr, getattr(func, attr))
    condition.__dict__.update(func.__dict__)
    return condition