code: func DeserializeMetadata(metadataBytes []byte) (map[string][]byte, error) {
  	if metadataBytes == nil {
  		return nil, nil
  	}
  	metadata := &kvrwset.KVMetadataWrite{}
  	if err := proto.Unmarshal(metadataBytes, metadata); err != nil {
  		return nil, err
  	}
  	m := make(map[string][]byte, len(metadata.Entries))
  	for _, metadataEntry := range metadata.Entries {
  		m[metadataEntry.Name] = metadataEntry.Value
  	}
  	return m, nil
  }
docs: // DeserializeMetadata deserializes metadata bytes from statedb