def METHOD_NAME(*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)