def _make_context(self, request: '<STR_LIT>'=None, state: Text=None):
if request:<EOL><INDENT>self.client.user_context({<EOL>'<STR_LIT:id>': request.user.id,<EOL>})<EOL>self.client.extra_context({<EOL>'<STR_LIT:message>': repr(request.stack),<EOL>'<STR_LIT>': make_rw(request.register),<EOL>})<EOL>self.client.tags_context({<EOL>'<STR_LIT>': request.conversation.id,<EOL>'<STR_LIT>': request.register.get(request.register.STATE),<EOL>'<STR_LIT:state>': state,<EOL>'<STR_LIT>': request.platform,<EOL>})<EOL><DEDENT>
Build the context for a specific request/state