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