docs: def open_state_machine(state_machine_path):
      """Executes the specified state machine
  
      :param str state_machine_path: The file path to the state machine
      :return StateMachine: The loaded state machine
      """
      sm = storage.load_state_machine_from_path(state_machine_path)
      core_singletons.state_machine_manager.add_state_machine(sm)
  
      return sm