<｜begin▁of▁sentence｜>### Instruction:
In the context of optimizing our supply chain logistics network, we've developed a directed graph model that encapsulates the workflow from 'Node A' representing our supplier, through 'Node B' our distribution center, and finally to 'Node C' our retail outlet. The connections 'AB' and 'BC' represent the transit of goods from the supplier to the distribution center and then on to the retail outlet, respectively. Now, to effectively communicate and analyze this model with the rest of the supply chain team, we need to transcribe this graph into a Graphviz dot file for improved visualization. 

The nodes and their relationships are currently outlined in a JSON format, as follows:

```json
{
  'graph_nodes': [
    {'id': 'A', 'label': 'Node A'},
    {'id': 'B', 'label': 'Node B'},
    {'id': 'C', 'label': 'Node C'}
  ],
  'graph_edges': [
    {'source': 'A', 'target': 'B', 'label': 'AB'},
    {'source': 'B', 'target': 'C', 'label': 'BC'}
  ]
} 
```

Could you demonstrate the approach for converting this JSON-based graph representation into a Graphviz dot file leveraging NetworkX's `write_dot` function? The goal is to facilitate a more intuitive understanding of the flow of goods within our supply chain for all stakeholders involved.
### Response:
import networkx as nx

# Create a simple graph
G = nx.DiGraph()
G.add_edge('A', 'B', label='AB')
G.add_edge('B', 'C', label='BC')
G.add_node('A', label='Node A')
G.add_node('C', label='Node C')

# Write to a dot file
nx.nx_agraph.write_dot(G, 'example.dot')
<|EOT|>
