<｜begin▁of▁sentence｜>### Instruction:
Given a star graph with 4 nodes, can you generate 2 random paths with a maximum length of 5 each using NetworkX?
### Response:
import networkx as nx

# Create a star graph with 4 nodes
G = nx.star_graph(3)

# Generate 2 random paths with maximum length 5 each
random_paths = list(nx.generate_random_paths(G, sample_size=2, path_length=5))

# Output the generated paths
for path in random_paths:
    print(path)
<|EOT|>
