code: def batch_contains_deleted(self):
          "Check if current batch contains already deleted images."
          if not self._duplicates: return False
          imgs = [self._all_images[:self._batch_size][0][1], self._all_images[:self._batch_size][1][1]]
          return any(img in self._deleted_fns for img in imgsf batch_contains_deleted(self):
          "Check if current batch contains already deleted images."
          if not self._duplicates: return False
          imgs = [self._all_images[:self._batch_size][0][1], self._all_images[:self._batch_size][1][1]]
          return any(img in self._deleted_fns for img in imgs)
docs: Check if current batch contains already deleted images.