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"]
docstr: Convert directory path to uri 
docstr_tok: ["Convert","directory","path","to","uri"]
code: def _path2uri(self, dirpath):
      """Convert directory path to uri"""
      relpath = dirpath.replace(self.root_path, self.package_name)
      if relpath.startswith(os.path.sep):
          relpath = relpath[1:]
      return relpath.replace(os.path.sep, ".")
  
file_path: nipy/tools/apigen.py
imports: import os
  import re
label_desc: Use image node_id 6 for calling the ApiDocWriter obj's underlying member method code with example usage: obj._path2uri(dirpath) and returns: relpath