def METHOD_NAME(doxygen_path, output_directory):
    """Python utility to create sphinx rst file from png generated
    by doxygen (class diagrams ...)
    - scan doxygen ouput (html) path
    - create an image entry for each class_inh*.png file in a rst file
    Parameters
    ----------
    doxygen_path : Path()
       directory (full path) which contains png files generated by doxygen
    output_path : string
       directory (fullpath) of the rst output
    This function is supposed to be called  by a target created with
    cmake (make doxypng2sphinx)
    """
    # Scan doxygen output path and create a list with
    # files matching requirements
    class_diagram_match = 'inherit_graph*.png'
    doxygen_path = Path(doxygen_path).resolve()
    ref = '.. _api_class_diagrams:\n\n'
    header = 'C++ Class diagrams'
    header += '\n' + len(header) * '=' + '\n\n'
    header = ref + header
    files = [f for f in doxygen_path.glob(class_diagram_match)]
    realfiles = [Path('../doxygen', f.name) for f in files]
    realfiles = [Path('/', f) for f in realfiles]
    outputfile = Path(output_directory, 'class_diagrams.rst')
    with open(outputfile, 'w') as file:
        file.writelines(header)
        #params = [':height: 190 px', ':class: gallery']
        params = [':class: gallery']
        img_prefix = '.. image:: '
        for f in realfiles:
            line = img_prefix + f.as_posix()
            for p in params:
                line += '\n    ' + p
            line += '\n\n'
            file.writelines(line)