code: func (d *InstanceDiff) CopyAttributes() map[string]*ResourceAttrDiff {
  	d.mu.Lock()
  	defer d.mu.Unlock()
  
  	attrs := make(map[string]*ResourceAttrDiff)
  	for k, v := range d.Attributes {
  		attrs[k] = v
  	}
  
  	return attrs
  }
docs: // Safely copies the Attributes map