def METHOD_NAME() -> None:
    cases = {
        "foo": 2,
        "bar": 1,
    }
    for tag, count in cases.items():
        res = list(q.find(plot.references(), dict(tags=tag)))
        assert len(res) == count