<｜begin▁of▁sentence｜>### Instruction:
Given that we need to generate a single unlabeled tree with 5 nodes drawn uniformly at random, and we want to ensure the randomness is repeatable, how can we use NetworkX to create such a tree and visualize it using matplotlib?
### Response:
import networkx as nx

# Generate a random tree with 5 nodes
random_tree = nx.random_tree(n=5, seed=42)

# Draw the random tree using matplotlib (optional)
import matplotlib.pyplot as plt
nx.draw(random_tree, with_labels=True, node_size=700, node_color='lightblue')
plt.show()
<|EOT|>
