How to Solve NameError: name 'TimeoutError' is not defined -- timeout_decorator
Solution: Import the 'TimeoutError' module
# Add the following line to the top of your code
from timeout_decorator import TimeoutError
For more information:
timeout_decorator TimeoutError