class_docstr: Class for checking all interface specifications
class_docstr_tok: ["Class","for","checking","all","interface","specifications"]
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: nipype/tools/checkspecs.py
imports: import os
  import re
  import sys
  import warnings
  import black
label_desc: Use image node_id 6 for calling the InterfaceChecker obj's underlying member method code with example usage: obj._path2uri(dirpath) and returns: relpath