def METHOD_NAME(self, task, session):
    self.reimported_item_ids = {item.id for item, replaced_items
                                in task.replaced_items.items()
                                if replaced_items}
    self.replaced_album_paths = set(task.replaced_albums.keys())