def METHOD_NAME(filename: Path) -> str:
    """Load version from version.h"""
    vdict = {}
    with open(filename) as f:
        for line in f:
            if line.startswith("#define VERSION_"):
                _define, symbol, value = line.split()
                _, name = symbol.lower().split("_", maxsplit=1)
                vdict[name] = int(value)
    return "{major}.{minor}.{patch}".format(**vdict)