code: def document_examples(path):
      """Main api entry point, for given path to top-level index.py file containing doc() defintion
      will generate a dictionary mapping operator/module to the list of referenced examples.
  
      Parameters
      ----------
      path : str
          Path to Python index file (with .py extension)
  
      Returns
      -------
      Dict
          Mapping from fn.operator or fn.module to list of example references
      """
      dict = _document_examples(path)
      for key in dict:
          entries = sorted(dict[key], key=lambda entry: entry[2].order)
          dict[key] = [(str, url) for (str, url, _) in entries]
      return dict
  
file_path: DALI/docs/doc_index.py
imports: from pathlib import Path
label_desc: Use image node_id 8 for calling a global function with example usage: document_examples(path) and returns: dict