'Use the callable `transaction_factory` to create the transaction
which will be passed to requests.'

def set_transaction_factory(self, transaction_factory):

    self.transaction_factory = transaction_factory
