def METHOD_NAME(project):
    tag_names = [
        "tag1",
        "tag2",
        "tag3",
    ]
    METHOD_NAME = []
    for tag_name in tag_names:
        tag = project.METHOD_NAME.create({"tag_name": tag_name, "ref": "main"})
        METHOD_NAME.append(tag)
    yield METHOD_NAME
    protected_tags = project.protectedtags.list()
    for protected_tag in protected_tags:
        protected_tag.delete()
    for tag in METHOD_NAME:
        tag.delete()