def METHOD_NAME(tag_factory, tag_category_factory):
    category = tag_category_factory(name="dummy")
    tag = tag_factory(names=["main_name", "alias"], category=category)
    assert snapshots.get_tag_snapshot(tag) == {
        "names": ["main_name", "alias"],
        "category": "dummy",
        "suggestions": [],
        "implications": [],
    }
    tag = tag_factory(names=["main_name", "alias"], category=category)
    imp1 = tag_factory(names=["imp1_main_name", "imp1_alias"])
    imp2 = tag_factory(names=["imp2_main_name", "imp2_alias"])
    sug1 = tag_factory(names=["sug1_main_name", "sug1_alias"])
    sug2 = tag_factory(names=["sug2_main_name", "sug2_alias"])
    db.session.add_all([imp1, imp2, sug1, sug2])
    tag.implications = [imp1, imp2]
    tag.suggestions = [sug1, sug2]
    db.session.flush()
    assert snapshots.get_tag_snapshot(tag) == {
        "names": ["main_name", "alias"],
        "category": "dummy",
        "implications": ["imp1_main_name", "imp2_main_name"],
        "suggestions": ["sug1_main_name", "sug2_main_name"],
    }