def document_shared_examples(section, operation_model, example_prefix, shared_examples):
 container_section = section.add_new_section('shared-examples')
 container_section.style.new_paragraph()
 container_section.style.bold('Examples')
 documenter = SharedExampleDocumenter()
 for example in shared_examples:
  documenter.document_shared_example(example=example, section=container_section.add_new_section(example['id']), prefix=example_prefix, operation_model=operation_model)

def document_shared_examples ( section , operation_model , example_prefix , shared_examples ) : container_section = section . add_new_section ( 'shared-examples' ) container_section . style . new_paragraph ( ) container_section . style . bold ( 'Examples' ) documenter = SharedExampleDocumenter ( ) for example in shared_examples : documenter . document_shared_example ( example = example , section = container_section . add_new_section ( example [ 'id' ] ) , prefix = example_prefix , operation_model = operation_model )
documents the shared examples .