How to Solve NameError: name '<function>' is not defined -- <imported

Solution: Import the '' module

To Solve the error, add the following line to the top of your code.

from  import 

 

For more information:
Python