code: func (c *scaleClient) pathAndVersionFor(resource schema.GroupResource) (string, schema.GroupVersionResource, error) {
  	gvr, err := c.mapper.ResourceFor(resource.WithVersion(""))
  	if err != nil {
  		return "", gvr, fmt.Errorf("unable to get full preferred group-version-resource for %s: %v", resource.String(), err)
  	}
  
  	groupVer := gvr.GroupVersion()
  
  	// we need to set the API path based on GroupVersion (defaulting to the legacy path if none is set)
  	// TODO: we "cheat" here since the API path really only depends on group ATM, but this should
  	// *probably* take GroupVersionResource and not GroupVersionKind.
  	apiPath := c.apiPathResolverFunc(groupVer.WithKind(""))
  	if apiPath == "" {
  		apiPath = "/api"
  	}
  
  	path := restclient.DefaultVersionedAPIPath(apiPath, groupVer)
  
  	return path, gvr, nil
  }
docs: // pathAndVersionFor returns the appropriate base path and the associated full GroupVersionResource
  // for the given GroupResource