def __str2bool(value) -> str | bool:
    """
    Parses a str to bool if possible. Returns the str otherwise.
    """
    if value.lower() in ["yes", "true", "1"]:
        return True
    if value.lower() in ["no", "false", "0"]:
        return False
    return value