<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_sandbox_ride(self, ride_id, new_status):
 """Update the status of an ongoing sandbox request. Params ride_id (str) The unique ID of the Ride Request. new_status (str) Status from VALID_PRODUCT_STATUS. Returns (Response) A Response object with successful status_code if ride status was updated. """

        if new_status not in VALID_PRODUCT_STATUS:
            message = '{} is not a valid product status.'
            raise UberIllegalState(message.format(new_status))

        args = {'status': new_status}
        endpoint = 'v1.2/sandbox/requests/{}'.format(ride_id)
        return self._api_call('PUT', endpoint, args=args)