code: def check_graphviz():
      GRAPHVIZ_ERR_MSG = (
          "Please install graphviz to plot."
          + " (See https://featuretools.alteryx.com/en/stable/install.html#installing-graphviz for"
          + " details)"
      )
      graphviz = import_or_raise("graphviz", GRAPHVIZ_ERR_MSG)
      # Try rendering a dummy graph to see if a working backend is installed
      try:
          graphviz.Digraph().pipe(format="svg")
      except graphviz.backend.ExecutableNotFound:
          raise RuntimeError(
              "To plot entity sets, a graphviz backend is required.\n"
              + "Install the backend using one of the following commands:\n"
              + "  Mac OS: brew install graphviz\n"
              + "  Linux (Ubuntu): $ sudo apt install graphviz\n"
              + "  Windows (conda): conda install -c conda-forge python-graphviz\n"
              + "  Windows (pip): pip install graphviz\n"
              + "  Windows (EXE required if graphviz was installed via pip): https://graphviz.org/download/#windows"
              + "  For more details visit: https://featuretools.alteryx.com/en/stable/install.html#installing-graphviz",
          )
      return graphviz
  
imports: from featuretools.utils.gen_utils import import_or_raise
label_desc: Use image node_id 1 for calling a global function with example usage: check_graphviz() and returns: graphviz