<｜begin▁of▁sentence｜>### Instruction:
Given a MultiGraph with multiple edges between the same pair of nodes, how can you access and display the weights of those edges using the MultiAdjacencyView from NetworkX?
### Response:
import networkx as nx

# Create a MultiGraph.
G = nx.MultiGraph()

# Add multiple edges between the same nodes.
G.add_edge(1, 2, key='a')
G.add_edge(1, 2, key='b', weight=2.5)
G.add_edge(2, 3, key='a')

# Access the MultiAdjacencyView object.
multi_adjacency_view = G.adj

# Display the weights for multiple edges between nodes 1 and 2.
weights = [d['weight'] for u, adj in multi_adjacency_view.items() if u == 1 for v, keydict in adj.items() if v == 2 for key, d in keydict.items()]
print('Weights between nodes 1 and 2:', weights)
<|EOT|>
