<｜begin▁of▁sentence｜>### Instruction:
Given a sequence of node degrees [3, 2, 2, 1, 1], can you use the Graph.Realize_Degree_Sequence function in igraph to generate a graph that has this degree sequence?
### Response:
from igraph import Graph

# Degree sequence
sequence = [3, 2, 2, 1, 1]

# Generate the graph from the degree sequence
graph = Graph.Realize_Degree_Sequence(sequence)

# Print summary of the graph
print(graph.summary())
<|EOT|>
