code: def _get_module_via_parent_enumeration(self, fullname):
          
          if fullname not in sys.modules:
              # Don't attempt this unless a module really exists in sys.modules,
              # else we could return junk.
              return
  
          pkgname, _, modname = str_rpartition(to_text(fullname), u'.')
          pkg = sys.modules.get(pkgname)
          if pkg is None or not hasattr(pkg, '__file__'):
              return
  
          pkg_path = os.path.dirname(pkg.__file__)
          try:
              fp, path, ext = imp.find_module(modname, [pkg_path])
              try:
                  path = self._py_filename(path)
                  if not path:
                      fp.close()
                      return
  
                  source = fp.read()
              finally:
                  if fp:
                      fp.close()
  
              if isinstance(source, mitogen.core.UnicodeType):
                  # get_source() returns "string" according to PEP-302, which was
                  # reinterpreted for Python 3 to mean a Unicode string.
                  source = source.encode('utf-8')
              return path, source, False
          except ImportError:
              e = sys.exc_info()[1]
              LOG.debug('imp.find_module(%r, %r) -> %s', modname, [pkg_path], e)
docs: Attempt to fetch source code by examining the module's (hopefully less
          insane) parent package. Required for older versions of
          ansible.compat.six and plumbum.colors.