def METHOD_NAME(function):
    """Function decorator which ignores UNSUPPORTED and INVALID_PARAMETER core errors"""
    @functools.wraps(function)
    def wrapper(*args, **kwargs):
        try:
            return function(*args, **kwargs)
        except pyrpr.CoreError as e:
            if e.status not in (pyrpr.ERROR_UNSUPPORTED, pyrpr.ERROR_INVALID_PARAMETER,
                                pyrpr.ERROR_UNIMPLEMENTED):
                raise
            if hybrid_unsupported_log_warn:
                log.warn("Unsupported", function, *args)
    return wrapper