def METHOD_NAME(severity, label, message):
    if ray and ray.is_initialized():
        severity = (
            getattr(ray.EventSeverity, severity)
            if isinstance(severity, str)
            else severity
        )
        ray.METHOD_NAME(severity, label, message)