<｜begin▁of▁sentence｜>### Instruction:
Given a multi-graph whose edge set contains multiple edges between some nodes (e.g., edge set is [(1, 2), (1, 2), (2, 3), (3, 4), (4, 2), (4, 2)]), how can you create a simple graph that hides the multiple edges between the same pair of nodes using NetworkX?
### Response:
import networkx as nx

# Create a multi-graph with multiple edges between the same nodes
G = nx.MultiGraph()
G.add_edges_from([(1, 2), (1, 2), (2, 3), (3, 4), (4, 2), (4, 2)])

# Draw the multi-graph with edges visible
nx.draw(G, with_labels=True)

# Convert the multi-graph to a simple graph, hiding multiple edges
G_simple = nx.Graph(G)

# Draw the simple graph with multiple edges hidden
nx.draw(G_simple, with_labels=True)
<|EOT|>
