def METHOD_NAME(stats_update, get_stats, translation_with_error):
    translation_with_error.approved = True
    stats_update(translation_with_error)
    assert get_stats(translation_with_error) == {
        "total": 1,
        "approved": 0,
        "pretranslated": 0,
        "unreviewed": 0,
        "warnings": 0,
        "errors": 1,
    }
    translation_with_error.approved = False
    translation_with_error.pretranslated = True
    stats_update(translation_with_error)
    assert get_stats(translation_with_error) == {
        "total": 1,
        "approved": 0,
        "pretranslated": 0,
        "unreviewed": 0,
        "warnings": 0,
        "errors": 1,
    }
    translation_with_error.pretranslated = False
    stats_update(translation_with_error)
    assert get_stats(translation_with_error) == {
        "total": 1,
        "approved": 0,
        "pretranslated": 0,
        "unreviewed": 1,
        "warnings": 0,
        "errors": 0,
    }