code: def resolve_dist(cls, dist, working_set):
          
  
          deps = set()
          deps.add(dist)
          try:
              reqs = dist.requires()
          except (AttributeError, OSError, IOError):  # The METADATA file can't be found
              return deps
          for req in reqs:
              dist = working_set.find(req)
              deps |= cls.resolve_dist(dist, working_set)
          return deps
docs: Given a local distribution and a working set, returns all dependencies from the set.
  
          :param dist: A single distribution to find the dependencies of
          :type dist: :class:`pkg_resources.Distribution`
          :param working_set: A working set to search for all packages
          :type working_set: :class:`pkg_resources.WorkingSet`
          :return: A set of distributions which the package depends on, including the package
          :rtype: set(:class:`pkg_resources.Distribution`)