code: def _build_results_examples(ontology):
      content = ""
      en_ontology = None
      for lang_ontology in ontology:
          if lang_ontology["language"] == "en":
              en_ontology = lang_ontology
              break
      for entity in en_ontology["entities"]:
          name = entity["name"]
          title = "\n".join([len(name) * "-", name, len(name) * "-"])
          input_examples = """
  Input examples:
  
  .. code-block:: json
  
     [
       %s
     ]
  """ % (
              ",\n     ".join(
                  ['"%s"' % ex for ex in entity["examples"]]
              )
          )
          output_examples = """
  Output examples:
  
  .. code-block:: json
  
     %s
  
  """ % entity[
              "resultDescription"
          ].replace(
              "\n", "\n   "
          )
          content += "\n".join([title, input_examples, output_examples])
      return content
  
file_path: snips-nlu/docs/write_ontology_doc.py
imports: from pathlib import Path
  from snips_nlu_parsers.builtin_entities import get_complete_entity_ontology, get_all_gazetteer_entities
label_desc: Use image node_id 5 for calling a global function with example usage: _build_results_examples(ontology) and returns: content