def METHOD_NAME(tagwrite):
    with open(tagwrite.path, "r", encoding="utf-8") as f:
        comment_lines = [line for line in f if line.startswith(Tag.COMMENTCHAR)]
    assert "vimiv tag file" in comment_lines[0]
    date_re = re.compile(r"# created: \d\d\d\d-\d\d-\d\d \d\d:\d\d")
    assert (
        date_re.match(comment_lines[1]) is not None
    ), f"date not found in {comment_lines[1]}"