<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def edit_resource(self, request):
 """ Helper function to edit a resource :param request: the request that edit the resource """

        self.location_query = request.uri_query
        self.payload = (request.content_type, request.payload)