<｜begin▁of▁sentence｜>### Instruction:
Given a path graph with 4 nodes, can you use NetworkX to draw it using a planar layout?
### Response:
import networkx as nx
import matplotlib.pyplot as plt

# Create a planar graph
G = nx.path_graph(4)
# Draw the graph with a planar layout
nx.draw_planar(G)
plt.show()
<|EOT|>
