<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def prepare_request(self, request):
 """Include the request ID, if available, in the outgoing request"""

        try:
            request_id = local.request_id
        except AttributeError:
            request_id = NO_REQUEST_ID

        if self.request_id_header and request_id != NO_REQUEST_ID:
            request.headers[self.request_id_header] = request_id

        return super(Session, self).prepare_request(request)