code: func ServerPreferredNamespacedResources(d DiscoveryInterface) ([]*metav1.APIResourceList, error) {
  	all, err := ServerPreferredResources(d)
  	return FilteredBy(ResourcePredicateFunc(func(groupVersion string, r *metav1.APIResource) bool {
  		return r.Namespaced
  	}), all), err
  }
docs: // ServerPreferredNamespacedResources uses the provided discovery interface to look up preferred namespaced resources