<｜begin▁of▁sentence｜>### Instruction:
As a financial planner, I often work with various patterns and sequences to devise investment strategies and understand market behaviors. Imagine we are analyzing the interconnectedness of various financial institutions, where the numbers [3, 2, 2, 2, 1] represent the number of transactions or partnerships each institution is involved in. We are curious if this partnership distribution could be applicable to a network where multiple collaborations between two institutions are allowed, like a complex portfolio where some assets could have overlapping interests.

To ensure our investment model reflects a possible real-world scenario, could we ascertain the viability of this partnership distribution conforming to a legitimate multigraph structure? In other words, using NetworkX, would we be able to verify if such a multigraph can exist, adhering to the given degree sequence, thus informing us of a potential pattern in financial networks?
### 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|>
