code: def doxy_gen(root_path):
      """
      Generate Doxygen configuration file.
      """
      confs = doxy_config(root_path)
      build_path = os.path.join(root_path, "doc", "build", "doxygen")
      gen_path = os.path.join(build_path, "Doxyfile")
      if not os.path.exists(build_path):
          os.makedirs(build_path)
      with open(gen_path, "w") as fd:
          fd.write(
              "#Please Don't Edit! This config file was autogenerated by "
          )
          fd.write(f"doxy_gen({root_path}) in doc/preprocess.py.\n")
          for c in confs:
              fd.write(c)
  
file_path: numpy/doc/preprocess.py
imports: import subprocess
  import os
  import sys
  from string import Template
label_desc: Use image node_id 2 for calling a global function with example usage: doxy_gen(root_path) without return types