docs: def get_top_level_links(self, data, many):
          """Hook for adding links to the root of the response data."""
          self_link = None
  
          if many:
              if self.opts.self_url_many:
                  self_link = self.generate_url(self.opts.self_url_many)
          else:
              if self.opts.self_url:
                  self_link = data.get('links', {}).get('self', None)
  
          return {'self': self_link}