code: def onlyPython(*args: str) -> Callable:
      r"""A decorator to run tests on specific :python:`Python` versions only."""
  
      def decorator(func: Callable) -> Callable:
          import pytest
  
          python_version = (
              f"{sys.version_info.major}.{sys.version_info.minor}"
          )
          return pytest.mark.skipif(
              python_version not in args,
              reason=f"Python {python_version} not supported",
          )(func)
  
      return decorator
  
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 5 for calling a global function with example usage: onlyPython() and returns: decorator, pytest