code: def onlyGraphviz(func: Callable) -> Callable:
      r"""A decorator to specify that this function should only execute in case
      :obj:`graphviz` is installed.
      """
      import pytest
  
      return pytest.mark.skipif(
          not has_graphviz(),
          reason="Graphviz not installed",
      )(func)
  
imports: import os
  import sys
  import warnings
  from importlib import import_module
  from importlib.util import find_spec
  from typing import Callable
  import torch
  from packaging.requirements import Requirement
  from torch_geometric.typing import WITH_PYG_LIB, WITH_TORCH_SPARSE
  from torch_geometric.visualization.graph import has_graphviz
label_desc: Use image node_id 9 for calling a global function with example usage: onlyGraphviz(func) and returns: pytest