def Transform(self, client, user, callback):
    from user import User

    if 'activated' in user.labels:
      labels = user.labels.combine()
      labels.remove('activated')
      labels.add(User.REGISTERED)
      user.labels = labels

    self._LogUpdate(user)

    if Version._mutate_items:
      user.Update(client, partial(callback, user))
    else:
      callback(user)
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/versions.py/UpdateUserType.Transform/original