def METHOD_NAME():
    @op(tags={"good": {"ok": "fine"}})
    def _fine_tags(_):
        pass
    class X:
        pass
    with pytest.raises(
        DagsterInvalidDefinitionError,
        match="Could not JSON encode value",
    ):
        @op(tags={"bad": X()})
        def _bad_tags(_):
            pass
    with pytest.raises(
        DagsterInvalidDefinitionError,
        match=r'JSON encoding "\[1, 2\]" of value "\(1, 2\)" is not equivalent to original value',
    ):
        @op(tags={"set_comes_back_as_dict": (1, 2)})
        def _also_bad_tags(_):
            pass