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