code: func TolerationsTolerateTaintsWithFilter(tolerations []v1.Toleration, taints []v1.Taint, applyFilter taintsFilterFunc) bool {
  	if len(taints) == 0 {
  		return true
  	}
  
  	for i := range taints {
  		if applyFilter != nil && !applyFilter(&taints[i]) {
  			continue
  		}
  
  		if !TolerationsTolerateTaint(tolerations, &taints[i]) {
  			return false
  		}
  	}
  
  	return true
  }
docs: // TolerationsTolerateTaintsWithFilter checks if given tolerations tolerates
  // all the taints that apply to the filter in given taint list.