code: def check_graphviz():
      """Returns True if both PyDot and Graphviz are available."""
      if not check_pydot():
          return False
      try:
          # Attempt to create an image of a blank graph
          # to check the pydot/graphviz installation.
          pydot.Dot.create(pydot.Dot())
          return True
      except (OSError, pydot.InvocationException):
          return False
  
file_path: keras/keras/utils/model_visualization.py
imports: import os
  import sys
  from keras.api_export import keras_export
  from keras.utils import io_utils
label_desc: Use image node_id 2 for calling a global function with example usage: check_graphviz() and returns: False, True, False