Create view_statemachine.py