code: func getAllTolerationPreferNoSchedule(tolerations []v1.Toleration) (tolerationList []v1.Toleration) {
  	for _, toleration := range tolerations {
  		// Empty effect means all effects which includes PreferNoSchedule, so we need to collect it as well.
  		if len(toleration.Effect) == 0 || toleration.Effect == v1.TaintEffectPreferNoSchedule {
  			tolerationList = append(tolerationList, toleration)
  		}
  	}
  	return
  }
docs: // getAllTolerationEffectPreferNoSchedule gets the list of all Tolerations with Effect PreferNoSchedule or with no effect.