def METHOD_NAME(version):
    match = re.match(EOS_VERSION_REGEXP, version)
    if match is None:
        raise RuntimeError("invalid version {}".format(version))
    major, minor, patch, build = match.groups()
    version_tuple = (major, minor, patch, build or 0)
    return tuple(map(int, version_tuple))