code: func GetTaintsFromNodeAnnotations(annotations map[string]string) ([]core.Taint, error) {
  	var taints []core.Taint
  	if len(annotations) > 0 && annotations[core.TaintsAnnotationKey] != "" {
  		err := json.Unmarshal([]byte(annotations[core.TaintsAnnotationKey]), &taints)
  		if err != nil {
  			return []core.Taint{}, err
  		}
  	}
  	return taints, nil
  }
docs: // GetTaintsFromNodeAnnotations gets the json serialized taints data from Pod.Annotations
  // and converts it to the []Taint type in core.