code: def run_fsm(self, name, command, events, transitions, timeout, max_transitions=20):
          
          self.ctrl.send_command(command)
          return FSM(name, self, events, transitions, timeout=timeout, max_transitions=max_transitions).run()
docs: Wrap the FSM code.