<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph with edges [(0, 1), (1, 2)], can you update the attributes of the first edge to include a weight of 10 and a label 'e0' using igraph's Edge.update_attributes method? After updating, print the attributes of the first edge to verify the update.
### Response:
from igraph import Graph

g = Graph(edges=[(0, 1), (1, 2)], directed=True)
e = g.es[0]  # Select the first edge
attributes_e = {'weight': 10, 'label': 'e0'}
e.update_attributes(attributes_e)

print(e.attributes())
# Expected output: {'weight': 10, 'label': 'e0'}
<|EOT|>
