<｜begin▁of▁sentence｜>### Instruction:
Given a degree sequence [3, 2, 2, 2, 1], can you determine whether it is possible for some multigraph to realize this sequence using NetworkX's is_multigraphical function?
### Response:
import networkx as nx

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

# Check if the sequence is multigraphical
is_multi = nx.is_multigraphical(sequence)

print("Is the sequence multigraphical?", is_multi)
<|EOT|>
