def _inject_patched_examples(self, existing_item, patched_item):
for key, _ in patched_item.examples.items():<EOL><INDENT>patched_example = patched_item.examples[key]<EOL>existing_examples = existing_item.examples<EOL>if key in existing_examples:<EOL><INDENT>existing_examples[key].fields.update(patched_example.fields)<EOL><DEDENT>else:<EOL><INDENT>error_msg = '<STR_LIT>'<EOL>raise InvalidSpec(error_msg.format(<EOL>quote(patched_item.name)), patched_example.lineno, patched_example.path)<EOL><DEDENT><DEDENT>
Injects patched examples into original examples.