code: func ValidateNodeSelectorTerm(term core.NodeSelectorTerm, fldPath *field.Path) field.ErrorList {
  	allErrs := field.ErrorList{}
  
  	for j, req := range term.MatchExpressions {
  		allErrs = append(allErrs, ValidateNodeSelectorRequirement(req, fldPath.Child("matchExpressions").Index(j))...)
  	}
  
  	for j, req := range term.MatchFields {
  		allErrs = append(allErrs, ValidateNodeFieldSelectorRequirement(req, fldPath.Child("matchFields").Index(j))...)
  	}
  
  	return allErrs
  }
docs: // ValidateNodeSelectorTerm tests that the specified node selector term has valid data