def METHOD_NAME(version):
    pattern = r"^.*?(\d+)[\.\_](\d+)[\.\_](\d+).*$"
    match = re.match(pattern, version)
    if not match:
        return tuple()
    major = int(match.group(1))
    minor = int(match.group(2))
    patch = int(match.group(3))
    return (major, minor, patch)