code: func GetTemplateGeneration(ds *apps.DaemonSet) (*int64, error) {
  	annotation, found := ds.Annotations[apps.DeprecatedTemplateGeneration]
  	if !found {
  		return nil, nil
  	}
  	generation, err := strconv.ParseInt(annotation, 10, 64)
  	if err != nil {
  		return nil, err
  	}
  	return &generation, nil
  }
docs: // GetTemplateGeneration gets the template generation associated with a v1.DaemonSet by extracting it from the
  // deprecated annotation. If no annotation is found nil is returned. If the annotation is found and fails to parse
  // nil is returned with an error. If the generation can be parsed from the annotation, a pointer to the parsed int64
  // value is returned.