docs: def next_task(self, item, raise_exceptions=None, **kwargs):
          """Deserializes all transactions for this batch and
          archives the file.
          """
          filename = os.path.basename(item)
          batch = self.get_batch(filename)
          tx_deserializer = self.tx_deserializer_cls(
              allow_self=self.allow_self, override_role=self.override_role
          )
          try:
              tx_deserializer.deserialize_transactions(
                  transactions=batch.saved_transactions
              )
          except (DeserializationError, TransactionDeserializerError) as e:
              raise TransactionsFileQueueError(e) from e
          else:
              batch.close()
              self.archive(filename)