<｜begin▁of▁sentence｜>### Instruction:
Given a graph where nodes are connected by edges with initial attributes, can you use the update_attributes method of an edge to update its attributes from a dictionary or iterable, and then print out the updated attributes of a specific edge? Assume you have a graph with edges that have a 'weight' and 'label' attribute, and you need to update the weight and add a new attribute 'color' for a specific edge.
### Response:
import networkx as nx

# Create a graph
g = nx.Graph()

# Add edges with initial attributes
g.add_edge(1, 2, weight=1.5, label='edge12')
g.add_edge(2, 3, weight=2.5, label='edge23')

# Update the attributes of a specific edge
e = g.edges[(1, 2)]
# Update using a dictionary
e.update_attributes({'weight':3.0}, {'color':'blue'})
# Check the updated attributes
print(g.edges[1, 2])
<|EOT|>
