code: func Write(config clientcmdapi.Config) ([]byte, error) {
  	return runtime.Encode(clientcmdlatest.Codec, &config)
  }
docs: // Write serializes the config to yaml.
  // Encapsulates serialization without assuming the destination is a file.