code: def __load_unique_identities(self, uidentities, matcher, match_new,
                                   reset, verbose):
          
  
          self.new_uids.clear()
  
          n = 0
  
          if reset:
              self.__reset_unique_identities()
  
          self.log("Loading unique identities...")
  
          for uidentity in uidentities:
              self.log("\n=====", verbose)
              self.log("+ Processing %s" % uidentity.uuid, verbose)
  
              try:
                  stored_uuid = self.__load_unique_identity(uidentity, verbose)
              except LoadError as e:
                  self.error("%s Skipping." % str(e))
                  self.log("=====", verbose)
                  continue
  
              stored_uuid = self.__load_identities(uidentity.identities, stored_uuid,
                                                   verbose)
  
              try:
                  self.__load_profile(uidentity.profile, stored_uuid, verbose)
              except Exception as e:
                  self.error("%s. Loading %s profile. Skipping profile." %
                             (str(e), stored_uuid))
  
              self.__load_enrollments(uidentity.enrollments, stored_uuid,
                                      verbose)
  
              if matcher and (not match_new or stored_uuid in self.new_uids):
                  stored_uuid = self._merge_on_matching(stored_uuid, matcher,
                                                        verbose)
  
              self.log("+ %s (old %s) loaded" % (stored_uuid, uidentity.uuid),
                       verbose)
              self.log("=====", verbose)
              n += 1
  
          self.log("%d/%d unique identities loaded" % (n, len(uidentities)))
docs: Load unique identities