def METHOD_NAME(self, category: CategoryIn):
    """Creates a Category in the database"""
    save_data = mapper.cast(category, CategorySave, group_id=self.group_id)
    new_category = self.mixins.METHOD_NAME(save_data)
    if new_category:
        self.publish_event(
            event_type=EventTypes.category_created,
            document_data=EventCategoryData(operation=EventOperation.create, category_id=new_category.id),
            message=self.t(
                "notifications.generic-created-with-url",
                name=new_category.name,
                url=urls.category_url(new_category.slug, self.settings.BASE_URL),
            ),
        )
    return new_category