code: func getTaintsFromNodeAnnotations(annotations map[string]string) ([]v1.Taint, error) {
  	var taints []v1.Taint
  	if len(annotations) > 0 && annotations[TaintsAnnotationKey] != "" {
  		err := json.Unmarshal([]byte(annotations[TaintsAnnotationKey]), &taints)
  		if err != nil {
  			return []v1.Taint{}, err
  		}
  	}
  	return taints, nil
  }
docs: // copied from Kubernetes 1.5.4