code: def path_is_known_executable(path):
      # type: (vistir.compat.Path) -> bool
      
  
      return (
          path_is_executable(path)
          or os.access(str(path), os.R_OK)
          and path.suffix in KNOWN_EXTS
      )
docs: Returns whether a given path is a known executable from known executable extensions
      or has the executable bit toggled.
  
      :param path: The path to the target executable.
      :type path: :class:`~vistir.compat.Path`
      :return: True if the path has chmod +x, or is a readable, known executable extension.
      :rtype: bool