def METHOD_NAME(metadata, new_key, new_value):
    """ Appends a new key-value pair to the existing metadata. """
    metadata['items'].append({
        'key': new_key,
        'value': new_value
    })