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