<｜begin▁of▁sentence｜>### Instruction:
Given a MultiDict object with pairs ('key1', 'value1'), ('key2', 'value2'), and ('key1', 'value3'), can you retrieve a list of (key, values) pairs where values is the list of values associated with each key?
### Response:
from multidict import MultiDict

# Initialize MultiDict with some keys and values
md = MultiDict([('key1', 'value1'), ('key2', 'value2'), ('key1', 'value3')])

# Use .lists() to get a list of (key, values) pairs
key_values_pairs = md.lists()

# Print the list of (key, values) pairs
print(key_values_pairs)
<|EOT|>
