def METHOD_NAME(s: Any) -> Optional[bool]:
    if s is None:
        return None
    if isinstance(s, bool):
        return s
    s = _unicodify(s)
    if s in ("yes", "true", "1"):
        return True
    elif s in ("false", "no", "0"):
        return False
    return None