def METHOD_NAME(root: pathlib.Path) -> str:
    version_file = root / "VERSION.txt"
    txt = version_file.read_text()
    found = []
    for line in txt.splitlines():
        line = line.strip()
        if not line or line.startswith("#"):
            continue
        found.append(line)
    if not found:
        raise click.ClickException(f"Version is not found in {version_file}")
    if len(found) > 1:
        raise click.ClickException(
            f"Multiple versions {found} are not found in {version_file}"
        )
    return found[0]