def METHOD_NAME(output_dir, function_path):
    with open(os.path.join(output_dir, "%s.rst" % function_path), "w") as doc:
        function_name = function_path.split(".")[-1]
        doc.write("%s\n" % function_name)
        doc.write("=" * len(function_name))
        doc.write("\n\n")
        doc.write(".. autofunction:: %s\n" % function_path)