<｜begin▁of▁sentence｜>### Instruction:
Given a list of strings representing the edges of a bipartite graph with edge attributes in a Python dictionary format, how can you parse this edgelist to create a NetworkX Graph object, including the edge attributes, using the 'parse_edgelist' API from NetworkX?
### Response:
from networkx.algorithms import bipartite
lines = ["1 2 {\'color\':\'blue\'}", "2 3 {\'color\':\'red\'}", "3 4 {\'color\':\'green\'}"]
G = bipartite.parse_edgelist(lines, nodetype=int, data=True)
print(sorted(G.nodes()))
print(sorted(G.edges(data=True)))
<|EOT|>
