code: def default_links_factory_with_additional(additional_links):
      
      def factory(pid, **kwargs):
          links = default_links_factory(pid)
          for link in additional_links:
              links[link] = additional_links[link].format(pid=pid,
                                                          scheme=request.scheme,
                                                          host=request.host)
          return links
  
      return factory
docs: Generate a links generation factory with the specified additional links.
  
      :param additional_links: A dict of link names to links to be added to the
             returned object.
      :returns: A link generation factory.