def METHOD_NAME(self, tag: TagIn):
    """Creates a Tag in the database"""
    save_data = mapper.cast(tag, TagSave, group_id=self.group_id)
    new_tag = self.repo.create(save_data)
    if new_tag:
        self.publish_event(
            event_type=EventTypes.tag_created,
            document_data=EventTagData(operation=EventOperation.create, tag_id=new_tag.id),
            message=self.t(
                "notifications.generic-created-with-url",
                name=new_tag.name,
                url=urls.tag_url(new_tag.slug, self.settings.BASE_URL),
            ),
        )
    return new_tag