def METHOD_NAME(cls, value: str):
    value = value.lower()
    if value.startswith(("failed", "fail")):
        return cls.FAILED
    if value.startswith(("passed", "pass", "success", "ok")):
        return cls.PASSED
    if value.startswith(("skipped", "skip", "ignore", "ignored")):
        return cls.SKIPPED
    if value.startswith("WARNING"):
        return cls.WARNED
    raise ValueError(f"Unknown test status `{value}`")