<｜begin▁of▁sentence｜>### Instruction:
Given that the barbell_graph function creates a barbell graph consisting of two complete graphs connected by a path, how can you generate and visualize a barbell graph with each complete graph having 5 nodes and the path connecting them containing 4 nodes?
### Response:
import networkx as nx

# Create a Barbell graph with two complete graphs K_m1 of size 5,
# connected by a path P_m2 of length 4
G = nx.barbell_graph(m1=5, m2=4)

# Draw the graph
import matplotlib.pyplot as plt
nx.draw(G, with_labels=True)
plt.show()
<|EOT|>
