class_docstr: Class for checking all interface specifications
class_docstr_tok: ["Class","for","checking","all","interface","specifications"]
docstr: Convert uri to absolute filepath
  
  Parameters
  ----------
  uri : string
      URI of python module to return path for
  
  Returns
  -------
  path : None or string
      Returns None if there is no valid path for this URI
      Otherwise returns absolute file system path for URI
docstr_tok: ["Convert","uri","to","absolute","filepath","Parameters","--","--","--","--","--","uri",":","string","URI","of","python","module","to","return","path","for","Returns","--","--","--","-","path",":","None","or","string","Returns","None","if","there","is","no","valid","path","for","this","URI","Otherwise","returns","absolute","file","system","path","for","URI"]
code: def _uri2path(self, uri):
      """Convert uri to absolute filepath
  
      Parameters
      ----------
      uri : string
          URI of python module to return path for
  
      Returns
      -------
      path : None or string
          Returns None if there is no valid path for this URI
          Otherwise returns absolute file system path for URI
  
      """
      if uri == self.package_name:
          return os.path.join(self.root_path, "__init__.py")
      path = uri.replace(".", os.path.sep)
      path = path.replace(self.package_name + os.path.sep, "")
      path = os.path.join(self.root_path, path)
      # XXX maybe check for extensions as well?
      if os.path.exists(path + ".py"):  # file
          path += ".py"
      elif os.path.exists(os.path.join(path, "__init__.py")):
          path = os.path.join(path, "__init__.py")
      else:
          return None
      return path
  
file_path: nipype/tools/checkspecs.py
imports: import os
  import re
  import sys
  import warnings
  import black
label_desc: Use image node_id 5 for calling the InterfaceChecker obj's underlying member method code with example usage: obj._uri2path(uri) and returns: path, os, None