code: func DecodeObjectManagedFields(from runtime.Object) (fieldpath.ManagedFields, error) {
  	if from == nil {
  		return make(map[string]*fieldpath.VersionedSet), nil
  	}
  	accessor, err := meta.Accessor(from)
  	if err != nil {
  		panic(fmt.Sprintf("couldn't get accessor: %v", err))
  	}
  
  	managed, err := decodeManagedFields(accessor.GetManagedFields())
  	if err != nil {
  		return nil, fmt.Errorf("failed to convert managed fields from API: %v", err)
  	}
  	return managed, err
  }
docs: // DecodeObjectManagedFields extracts and converts the objects ManagedFields into a fieldpath.ManagedFields.