def METHOD_NAME(peewee_db):
    with peewee_db:
        # clean db
        clean_db()
        # a category already exists
        PredictionFactory(
            barcode=DEFAULT_BARCODE,
            type="category",
            value_tag="en:salmons",
            automatic_processing=False,
            predictor="matcher",
        )
        ProductInsightFactory(
            id=insight_id1,
            barcode=DEFAULT_BARCODE,
            type="category",
            value_tag="en:salmons",
            predictor="matcher",
        )
        # Run the test case.
        yield
        # Tear down.
        clean_db()