<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph with edges [(0, 1), (2, 3), (1, 2), (0, 3), (1, 3)] and respective weights [1.0, 2.5, 1.5, 0.5, 3.0], how would you write this graph to a GML file using igraph's write_gml function?​ The nodes should be labeled as 'node0', 'node1', 'node2', and 'node3'.
### Response:
import igraph as ig

# Create a simple graph
g = ig.Graph(edges=[(0, 1), (2, 3), (1, 2), (0, 3), (1, 3)], directed=True)

# Add some attributes
g.vs['label'] = ['node0', 'node1', 'node2', 'node3']
g.es['weight'] = [1.0, 2.5, 1.5, 0.5, 3.0]

# Write the graph to a GML file
g.write_gml('output_graph.gml')
<|EOT|>
