@gen.engine
  def Transform(self, client, post, callback):
    from post import Post
    labels = post.labels.combine()
    if Post.UNSHARED in labels:
      labels.add(Post.REMOVED)
      post.labels = labels
      self._LogUpdate(post)
      if Version._mutate_items:
        yield gen.Task(post.Update, client)

    callback(post)
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/versions.py/AddRemovedToPost.Transform/original