docs: def find_packages_requirements_dists(pkg_names, working_set=None):
      """
      Return the entire list of dependency requirements, reversed from the
      bottom.
      """
  
      working_set = working_set or default_working_set
      requirements = [
          r for r in (Requirement.parse(req) for req in pkg_names)
          if working_set.find(r)
      ]
      return list(reversed(working_set.resolve(requirements)))