<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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