[tst1.py] Created recognize function for response codes