<｜begin▁of▁sentence｜>### Instruction:
Using the NetworkX 'random_unlabeled_rooted_tree' function, create a random unlabeled rooted tree with 10 nodes. How can you determine the root of the generated tree?
### Response:
import networkx as nx

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

# Access the root of the tree
root = random_tree.graph['root']

# Print the tree and its root
print('Random rooted tree:', random_tree.edges())
print('Root of the tree:', root)
<|EOT|>
