Use of the arduino pins in PYNQ-Z2

Hello!
I am basically trying to implement a NOT gate logic via PYNQ-Z2 and I am connecting an external LED. When the switch is turned ON then the external LED will be OFF and when the switch is turned off the LED is ON. I am using the Arduino Headers for the input. But the code is showing some errors. I am attaching the code below.

“current_tri_val = self.microblaze.read_cmd(ARDUINO_DIO_BASEADDR +
81 ARDUINO_DIO_TRI_OFFSET)”

This is the error that I am facing.