code: func CalculatePatches(infos []*resource.Info, encoder runtime.Encoder, mutateFn PatchFn) []*Patch {
  	var patches []*Patch
  	for _, info := range infos {
  		patch := &Patch{Info: info}
  		if CalculatePatch(patch, encoder, mutateFn) {
  			patches = append(patches, patch)
  		}
  	}
  	return patches
  }
docs: // CalculatePatches calculates patches on each provided info object. If the provided mutateFn
  // makes no change in an object, the object is not included in the final list of patches.