code: func ValidateAvoidPodsInNodeAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList {
  	allErrs := field.ErrorList{}
  
  	v1Avoids, err := v1helper.GetAvoidPodsFromNodeAnnotations(annotations)
  	if err != nil {
  		allErrs = append(allErrs, field.Invalid(fldPath.Child("AvoidPods"), core.PreferAvoidPodsAnnotationKey, err.Error()))
  		return allErrs
  	}
  	var avoids core.AvoidPods
  	if err := corev1.Convert_v1_AvoidPods_To_core_AvoidPods(&v1Avoids, &avoids, nil); err != nil {
  		allErrs = append(allErrs, field.Invalid(fldPath.Child("AvoidPods"), core.PreferAvoidPodsAnnotationKey, err.Error()))
  		return allErrs
  	}
  
  	if len(avoids.PreferAvoidPods) != 0 {
  		for i, pa := range avoids.PreferAvoidPods {
  			idxPath := fldPath.Child(core.PreferAvoidPodsAnnotationKey).Index(i)
  			allErrs = append(allErrs, validatePreferAvoidPodsEntry(pa, idxPath)...)
  		}
  	}
  
  	return allErrs
  }
docs: // ValidateAvoidPodsInNodeAnnotations tests that the serialized AvoidPods in Node.Annotations has valid data