code: func UnmarshalFromYamlForCodecs(buffer []byte, gv schema.GroupVersion, codecs serializer.CodecFactory) (runtime.Object, error) {
  	const mediaType = runtime.ContentTypeYAML
  	info, ok := runtime.SerializerInfoForMediaType(codecs.SupportedMediaTypes(), mediaType)
  	if !ok {
  		return nil, errors.Errorf("unsupported media type %q", mediaType)
  	}
  
  	decoder := codecs.DecoderToVersion(info.Serializer, gv)
  	return runtime.Decode(decoder, buffer)
  }
docs: // UnmarshalFromYamlForCodecs unmarshals yaml into an object using the specified codec
  // TODO: Is specifying the gv really needed here?
  // TODO: Can we support json out of the box easily here?