def extend(self, items, replace=True):
if isinstance(items, dict) or isinstance(items, SortableDict):<EOL><INDENT>items = list(items.items())<EOL><DEDENT>for (key, value) in items:<EOL><INDENT>self.append(key, value, replace=replace)<EOL><DEDENT>
Append the items to the metadata.