<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def upload(self, resource_id, data):
 """Update the request URI to upload the a document to this resource. Args: resource_id (integer):
 The group id. data (any):
 The raw data to upload. """

        self.body = data
        self.content_type = 'application/octet-stream'
        self.resource_id(str(resource_id))
        self._request_uri = '{}/upload'.format(self._request_uri)