async def _send_generic_template(self, request: Request, stack: Stack):
gt = stack.get_layer(GenericTemplate)<EOL>payload = await gt.serialize(request)<EOL>msg = {<EOL>'<STR_LIT>': {<EOL>'<STR_LIT:type>': '<STR_LIT>',<EOL>'<STR_LIT>': payload<EOL>}<EOL>}<EOL>await self._add_qr(stack, msg, request)<EOL>await self._send(request, msg, stack)<EOL>
Generates and send a generic template.