code: func (d *DiscoveryClient) ServerPreferredResources() ([]*metav1.APIResourceList, error) {
  	_, rs, err := withRetries(defaultRetries, func() ([]*metav1.APIGroup, []*metav1.APIResourceList, error) {
  		rs, err := ServerPreferredResources(d)
  		return nil, rs, err
  	})
  	return rs, err
  }
docs: // ServerPreferredResources returns the supported resources with the version preferred by the
  // server.