in Sample-Code-Snippets/Python/Azure Function Example/example_orchestrator.py [0:0]
def check_state(incoming):
logging.info(f"Checking if the message goes to the left or the right queue.")
message = json.loads(incoming)
direction = message['direction_data']['direction']
logging.info(f"We are going {direction}!")
return direction