# Compile with checkpointer for persistence
graph = builder.compile(checkpointer=checkpointer)
```

```python
from IPython.display import display, Image

display(Image(graph.get_graph().draw_mermaid_png()))
```

![Graph](./assets/autogen-output.png)

## 3. Test the graph locally

Before deploying to LangGraph Platform, you can test the graph locally:

```python hl_lines="2 13"