def isGraphvizModuleInstalled():
    """
    Is the graphviz Python module installed?
    """
    try:
        __import__("graphviz")
    except ImportError:
        return False
    else:
        return True

    Is the graphviz Python module installed?
    
stackoverflow/venv/lib/python3.6/site-packages/automat/_test/test_visualize.py