def METHOD_NAME():
    class ThisException(Exception):
        pass
    @op
    def throw_an_error():
        raise ThisException("nope")
    with pytest.raises(ThisException) as e_info:
        wrap_op_in_graph_and_execute(throw_an_error)
    assert isinstance(e_info.value, ThisException)