code: func EncodeObjectManagedFields(obj runtime.Object, fields fieldpath.ManagedFields) error {
  	accessor, err := meta.Accessor(obj)
  	if err != nil {
  		panic(fmt.Sprintf("couldn't get accessor: %v", err))
  	}
  
  	managed, err := encodeManagedFields(fields)
  	if err != nil {
  		return fmt.Errorf("failed to convert back managed fields to API: %v", err)
  	}
  	accessor.SetManagedFields(managed)
  
  	return nil
  }
docs: // EncodeObjectManagedFields converts and stores the fieldpathManagedFields into the objects ManagedFields