code: def doxy_config(root_path):
      """
      Fetch all Doxygen sub-config files and gather it with the main config file.
      """
      confs = []
      dsrc_path = os.path.join(root_path, "doc", "source")
      sub = dict(ROOT_DIR=root_path)
      with open(os.path.join(dsrc_path, "doxyfile")) as fd:
          conf = DoxyTpl(fd.read())
          confs.append(conf.substitute(CUR_DIR=dsrc_path, **sub))
  
      for dpath, _, files in os.walk(root_path):
          if ".doxyfile" not in files:
              continue
          conf_path = os.path.join(dpath, ".doxyfile")
          with open(conf_path) as fd:
              conf = DoxyTpl(fd.read())
              confs.append(conf.substitute(CUR_DIR=dpath, **sub))
      return confs
  
file_path: numpy/doc/preprocess.py
imports: import subprocess
  import os
  import sys
  from string import Template
label_desc: Use image node_id 3 for calling a global function with example usage: doxy_config(root_path) and returns: confs