<｜begin▁of▁sentence｜>### Instruction:
Can you generate an unlabeled tree with 5 nodes and show its edges using NetworkX?
### Response:
import networkx as nx

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

# Print the edges of the tree
print('Edges of the randomly generated tree:', list(random_tree.edges()))
<|EOT|>
