<｜begin▁of▁sentence｜>### Instruction:
Given a MultiDict with initial key-value pairs [('key1', 'value1'), ('key2', 'value2')], can you use the update method to add a new item ('key3', 'value3') and update an existing item ('key2', 'new_value2')?
### Response:
from multidict import MultiDict

# Create a MultiDict object
d = MultiDict([('key1', 'value1'), ('key2', 'value2')])

# Update the multidict with new key-value pairs
d.update([('key3', 'value3'), ('key2', 'new_value2')])

# Print the updated multidict
print(d)
<|EOT|>
