Python Can Someone Correct The Code It Says Nameerror Name Node

Python Can Someone Correct The Code It Says Nameerror Name Node