class_docstr: Class for checking all interface specifications
class_docstr_tok: ["Class","for","checking","all","interface","specifications"]
docstr: Return module sequence discovered from ``self.package_name``
  
  
  Parameters
  ----------
  None
  
  Returns
  -------
  mods : sequence
      Sequence of module names within ``self.package_name``
  
  Examples
  --------
docstr_tok: ["Return","module","sequence","discovered","from","``","self.package_name","``","Parameters","--","--","--","--","--","None","Returns","--","--","--","-","mods",":","sequence","Sequence","of","module","names","within","``","self.package_name","``","Examples","--","--","--","--"]
code: def discover_modules(self):
      """Return module sequence discovered from ``self.package_name``
  
  
      Parameters
      ----------
      None
  
      Returns
      -------
      mods : sequence
          Sequence of module names within ``self.package_name``
  
      Examples
      --------
      """
      modules = [self.package_name]
      # raw directory parsing
      for dirpath, dirnames, filenames in os.walk(self.root_path):
          # Check directory names for packages
          root_uri = self._path2uri(
              os.path.join(self.root_path, dirpath)
          )
          for dirname in dirnames[:]:  # copy list - we modify inplace
              package_uri = ".".join((root_uri, dirname))
              if self._uri2path(package_uri) and self._survives_exclude(
                  package_uri, "package"
              ):
                  modules.append(package_uri)
              else:
                  dirnames.remove(dirname)
          # Check filenames for modules
          for filename in filenames:
              module_name = filename[:-3]
              module_uri = ".".join((root_uri, module_name))
              if self._uri2path(module_uri) and self._survives_exclude(
                  module_uri, "module"
              ):
                  modules.append(module_uri)
      return sorted(modules)
  
file_path: nipype/tools/checkspecs.py
imports: import os
  import re
  import sys
  import warnings
  import black
label_desc: Use image node_id 12 for calling the InterfaceChecker obj's underlying member method code with example usage: obj.discover_modules() and returns: sorted