def Close(self, sync=True):
    send_notification = self._dirty and self.Schema.DATA in self.new_attributes
    super(PackedVersionedCollection, self).Close(sync=sync)
    if send_notification:
      self.ScheduleNotification(self.urn, token=self.token)
dataset/ETHPy150Open google/grr/grr/lib/aff4_objects/collects.py/PackedVersionedCollection.Close/original