code: def isPackage(self, dotted_name, extrapath=None):
          
          candidate = self.isModule(dotted_name + '.__init__', extrapath)
          if candidate:
              candidate = candidate[:-len(".__init__")]
          return candidate
docs: Is ``dotted_name`` the name of a package?