class_docstr: 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."""
      package_dir = self.package_name.replace(".", os.path.sep)
      relpath = dirpath.replace(self.root_path, package_dir)
      if relpath.startswith(os.path.sep):
          relpath = relpath[1:]
      return relpath.replace(os.path.sep, ".")
  
imports: import ast
  import os
  import re
  from importlib import import_module
  from types import BuiltinFunctionType, FunctionType
  from inspect import ismethod, getmodule
label_desc: Use image node_id 7 for calling the ApiDocWriter obj's underlying member method code with example usage: obj._path2uri(dirpath) and returns: relpath