def METHOD_NAME(string: str):
    try:
        parts = string.split(".")
        parts = map(int, parts)
        return _Version(*parts)
    except:
        raise Exception(f"Could not parse '{string}' as version") from None