code: func targetEncodingForTransform(scope *RequestScope, mediaType negotiation.MediaTypeOptions, req *http.Request) (schema.GroupVersionKind, runtime.NegotiatedSerializer, bool) {
  	switch target := mediaType.Convert; {
  	case target == nil:
  	case target.Kind == "PartialObjectMetadata" && target.GroupVersion() == metav1beta1.SchemeGroupVersion,
  		target.Kind == "PartialObjectMetadataList" && target.GroupVersion() == metav1beta1.SchemeGroupVersion,
  		target.Kind == "Table" && target.GroupVersion() == metav1beta1.SchemeGroupVersion:
  		return *target, metainternalversion.Codecs, true
  	}
  	return scope.Kind, scope.Serializer, false
  }
docs: // targetEncodingForTransform returns the appropriate serializer for the input media type