How to Solve NameError: name 'SimpleNamespace' is not defined -- types
Solution: Import the 'SimpleNamespace' module
To Solve the error, add the following line to the top of your code.
from types import SimpleNamespace
For more information:
Python types SimpleNamespace