code: def __merge(self, matched, interactive):
          
  
          for m in matched:
              identities = m['identities']
              uuid = identities[0]
  
              try:
                  for c in identities[1:]:
                      if self.__merge_unique_identities(c, uuid, interactive):
                          self.matched += 1
  
                          # Retrieve unique identity to show updated info
                          if interactive:
                              uuid = api.unique_identities(self.db, uuid=uuid)[0]
              except Exception as e:
                  if self.recovery:
                      self.recovery_file.save_matches(matched)
                  raise e
  
              m['processed'] = True
docs: Merge a lists of matched unique identities