code: def merge(self, from_uuid, to_uuid):
          
          if not from_uuid or not to_uuid:
              return CMD_SUCCESS
  
          try:
              api.merge_unique_identities(self.db, from_uuid, to_uuid)
              self.display('merge.tmpl',
                           from_uuid=from_uuid, to_uuid=to_uuid)
          except NotFoundError as e:
              self.error(str(e))
              return e.code
  
          return CMD_SUCCESS
docs: Merge one unique identity into another.
  
          Method that joins <from_uuid> unique identity into <to_uuid>.
          Identities and enrollments related to <from_uuid> will be
          assigned to <to_uuid>. In addition, <from_uuid> will be removed
          from the registry. Duplicated enrollments will be also removed from the
          registry.
  
          Profile information will be updated with the values of <from_uuid> in the
          case of <to_uuid> values were empty. If <from_uuid> was set as a bot,
          <to_uuid> will be set too.
  
          When <from_uuid> and <to_uuid> are equal, None or empty, the action does
          not have any effect.
  
          :param from_uuid: identifier of the unique identity set to merge
          :param to_uuid: identifier of the unique identity where 'from_uuid'
              will be merged