code: func (c *Client) Resource(resource *metav1.APIResource, namespace string) ResourceInterface {
  	resourceTokens := strings.SplitN(resource.Name, "/", 2)
  	subresources := []string{}
  	if len(resourceTokens) > 1 {
  		subresources = strings.Split(resourceTokens[1], "/")
  	}
  
  	if len(namespace) == 0 {
  		return oldResourceShim(c.delegate.Resource(c.version.WithResource(resourceTokens[0])), subresources)
  	}
  	return oldResourceShim(c.delegate.Resource(c.version.WithResource(resourceTokens[0])).Namespace(namespace), subresources)
  }
docs: // Resource returns an API interface to the specified resource for this client's
  // group and version. If resource is not a namespaced resource, then namespace
  // is ignored. The ResourceInterface inherits the parameter codec of c.