code: func NewForVersionForConfig(c *rest.Config, mapper meta.RESTMapper, version schema.GroupVersion) (CustomMetricsClient, error) {
  	configShallowCopy := *c
  	if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
  		configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
  	}
  	configShallowCopy.APIPath = "/apis"
  	if configShallowCopy.UserAgent == "" {
  		configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
  	}
  	configShallowCopy.GroupVersion = &version
  	configShallowCopy.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
  
  	client, err := rest.RESTClientFor(&configShallowCopy)
  	if err != nil {
  		return nil, err
  	}
  
  	return NewForVersion(client, mapper, version), nil
  }
docs: // NewForVersionForConfig returns a new CustomMetricsClient for a particular api version and base configuration.