code: def has_graphviz() -> bool:
      try:
          import graphviz
      except ImportError:
          return False
  
      try:
          graphviz.Digraph().pipe()
      except graphviz.backend.ExecutableNotFound:
          return False
  
      return True
  
imports: from math import sqrt
  from typing import Any, Optional
  import torch
  from torch import Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: has_graphviz() and returns: True, False, False