<｜begin▁of▁sentence｜>### Instruction:
Given a graph with edges [(0, 1), (1, 2), (2, 3), (3, 0)], can you show how to use NetworkX's draw function to visualize the graph with Matplotlib?
### Response:
import matplotlib.pyplot as plt
import networkx as nx

# Create a graph
G = nx.Graph()
G.add_edges_from([(0, 1), (1, 2), (2, 3), (3, 0)])

# Draw the graph
plt.figure(figsize=(8, 6))
nx.draw(G, with_labels=True)
plt.show()
<|EOT|>
