def METHOD_NAME(
    database: AllRepositories,
    unique_user: TestUser,
):
    slug = utils.random_string(length=10)
    model = database.categories.create(CategorySave(group_id=unique_user.group_id, slug=slug, name=slug))
    yield model
    try:
        database.categories.delete(model.slug)
    except Exception:
        pass