class_docstr: Class for automatic detection and parsing of API docs
  to Sphinx-parsable reST format
class_docstr_tok: ["Class","for","automatic","detection","and","parsing","of","API","docs","to","Sphinx-parsable","reST","format"]
code: def write_modules_api(self, modules, outdir):
      # write the list
      written_modules = []
      for m in modules:
          api_str = self.generate_api_doc(m)
          if not api_str:
              continue
          # write out to file
          outfile = os.path.join(outdir, m + self.rst_extension)
          fileobj = open(outfile, "w")
          fileobj.write(api_str)
          fileobj.close()
          written_modules.append(m)
      self.written_modules = written_modules
  
file_path: nipy/tools/apigen.py
imports: import os
  import re
label_desc: Use image node_id 12 for calling the ApiDocWriter obj's underlying member method code with example usage: obj.write_modules_api(modules, outdir) without return types