Example Of Python Tree Search