code: def write_transaction(self, transaction, mode):
          # This method offers backward compatibility with the Web API.
          
          response = self.post_transaction(transaction, mode)
          return self._process_post_response(response.json(), mode)
docs: Submit a valid transaction to the mempool.