<｜begin▁of▁sentence｜>### Instruction:
Given a degree sequence [1, 2, 2, 3], generate a random simple graph that has this degree sequence using NetworkX's random_degree_sequence_graph function, ensuring that the process is repeatable by specifying a seed for the random number generator.
### Response:
import networkx as nx

# Define the degree sequence
sequence = [1, 2, 2, 3]

# Create a graph with the specified degree sequence
G = nx.random_degree_sequence_graph(sequence, seed=42)

# Print the degree of each node
print(sorted((d for n, d in G.degree())))
<|EOT|>
