code: def check_pydot():
      """Returns True if PyDot and Graphviz are available."""
      if pydot is None:
          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:
          return False
  
imports: import os
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: check_pydot() and returns: False, True, False