def METHOD_NAME(self, tmp_path: Path) -> None:
    """Test get_version_from_file."""
    obj = KBEnvManager(tmp_path)
    # no version file or path
    assert not obj.get_version_from_file()
    # path not provided; use version file
    version_file = tmp_path / KB_VERSION_FILENAME
    version_file.write_text("v1.22.0")
    assert obj.get_version_from_file(version_file) == "v1.22.0"