code: async def set_qtm_event(self, event=None):
          
          cmd = "event%s" % ("" if event is None else " " + event)
          return await asyncio.wait_for(
              self._protocol.send_command(cmd), timeout=self._timeout
          )
docs: Set event in QTM.