code: def move(self, from_id, to_uuid):
          
          if not from_id or not to_uuid:
              return CMD_SUCCESS
  
          try:
              api.move_identity(self.db, from_id, to_uuid)
              self.display('move.tmpl',
                           from_id=from_id, to_uuid=to_uuid)
          except NotFoundError as e:
              self.error(str(e))
              return e.code
  
          return CMD_SUCCESS
docs: Move an identity into a unique identity.
  
          The method moves the identity identified by <from_id> to
          the unique identity <to_uuid>.
  
          In the case of<from_id> is equal to <to_uuid> and this unique identity
          does not exist, a new unique identity will be created, detaching <from_id>
          from its current unique identity and moving it to the new one.
  
          When <to_uuid> is the unique identity that is currently related to
          <from_id>, the action does not have any effect. The same occurs when
          either <from_id> or <to_uuid> are None or empty.
  
          :param from_id: identifier of the identity set to be moved
          :param to_uuid: identifier of the unique identity where 'from_id'
              will be moved