def METHOD_NAME():
    with pytest.raises(
        DagsterInvalidDefinitionError, match="Invalid item in node list: 'not_a_op'"
    ):
        GraphDefinition(
            node_defs=["not_a_op"],
            name="test",
        )