<｜begin▁of▁sentence｜>### Instruction:
Given a graph with the edges (0, 1), (1, 2), and (2, 3), how can you use the update_attributes method from the Edge class in igraph to update the edge between vertices 1 and 2 with a 'weight' of 2 and a 'color' of 'red'?
### Response:
from igraph import Graph

# Create a simple graph
g = Graph([(0, 1), (1, 2), (2, 3)])

# Access an edge using its index
e = g.es[1]

# Initial attributes
print('Original attributes:', e.attributes())

# Update the attributes of an edge
e.update_attributes({'weight': 2}, {'color': 'red'})

# Verify the change
print('Updated attributes:', e.attributes())
<|EOT|>
