code: def _inject_patched_examples(self, existing_item, patched_item):
          
          for key, _ in patched_item.examples.items():
              patched_example = patched_item.examples[key]
              existing_examples = existing_item.examples
              if key in existing_examples:
                  existing_examples[key].fields.update(patched_example.fields)
              else:
                  error_msg = 'Example defined in patch {} must correspond to a pre-existing example.'
                  raise InvalidSpec(error_msg.format(
                      quote(patched_item.name)), patched_example.lineno, patched_example.path)
docs: Injects patched examples into original examples.