code: func apiVersionsToAPIGroup(apiVersions *metav1.APIVersions) (apiGroup metav1.APIGroup) {
  	groupVersions := []metav1.GroupVersionForDiscovery{}
  	for _, version := range apiVersions.Versions {
  		groupVersion := metav1.GroupVersionForDiscovery{
  			GroupVersion: version,
  			Version:      version,
  		}
  		groupVersions = append(groupVersions, groupVersion)
  	}
  	apiGroup.Versions = groupVersions
  	// There should be only one groupVersion returned at /api
  	apiGroup.PreferredVersion = groupVersions[0]
  	return
  }
docs: // Convert metav1.APIVersions to metav1.APIGroup. APIVersions is used by legacy v1, so
  // group would be "".