def METHOD_NAME(tagwrite):
    with open(tagwrite.path, "r", encoding="utf-8") as f:
        path_lines = [
            line.strip() for line in f if not line.startswith(Tag.COMMENTCHAR)
        ]
    for path in tagwrite.content:
        assert path in path_lines