code: def isPackage(file_path):
      
      return (os.path.isdir(file_path) and
              os.path.isfile(os.path.join(file_path, '__init__.py')))
docs: Determine whether or not a given path is a (sub)package or not.