code: def write_rst(kind, name, project, path):
      file_name = transfer_filename(name)
      with open(
          os.path.join(path, "cpp", project, kind + ".rst"), "a"
      ) as rst:
          rst.write("\t" + kind + "/" + file_name + ".rst\n")
          rst.close()
      with open(
          os.path.join(path, "cpp", project, kind, file_name + ".rst"),
          "w",
      ) as subrst:
          subrst.write(kind + " " + name + "\n")
          subrst.write("========================================")
          subrst.write("\n\n.. doxygen" + kind + ":: " + name + "\n")
          subrst.write("\t:project: " + project + "\n\t:members: \n")
          subrst.close()
  
imports: import os
  import sys
  import xml.etree.ElementTree
label_desc: Use image node_id 2 for calling a global function with example usage: write_rst(kind, name, project, path) without return types