<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def init_resource(self, request, res):
 """ Helper function to initialize a new resource. :param request: the request that generate the new resource :param res: the resource :return: the edited resource """

        res.location_query = request.uri_query
        res.payload = (request.content_type, request.payload)
        return res