code: def add_resolved_requirements(self, reqs, platforms=None):
      
      distributions = self._resolve_distributions_by_platform(reqs, platforms=platforms)
      locations = set()
      for platform, dists in distributions.items():
        for dist in dists:
          if dist.location not in locations:
            self._log.debug('  Dumping distribution: .../{}'.format(os.path.basename(dist.location)))
            self.add_distribution(dist)
          locations.add(dist.location)
docs: Multi-platform dependency resolution for PEX files.
  
      :param builder: Dump the requirements into this builder.
      :param interpreter: The :class:`PythonInterpreter` to resolve requirements for.
      :param reqs: A list of :class:`PythonRequirement` to resolve.
      :param log: Use this logger.
      :param platforms: A list of :class:`Platform`s to resolve requirements for.
                        Defaults to the platforms specified by PythonSetup.