I’m not sure if you’re asking for help, but for the sake of others facing the problem, I’m going to assume you are. You need to install NetworkTables through pip before you can use is in code. To do this, simply enter into the console
pip install pynetworktables
Then go ahead and remove that first import line. You don’t need that.
Good luck!