<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cancel_order(self, order_id, version=1):
 """ Cancel the order specified by order_id. Version 1 (default for backwards compatibility reasons):
 Returns True if order was successfully canceled, otherwise raise a BitstampError. Version 2: Returns dictionary of the canceled order, containing the keys: id, type, price, amount """

        data = {'id': order_id}
        return self._post("cancel_order/", data=data, return_json=True,
                          version=version)