code: def _make_exe_marker(item, only: bool = False):
      def make_kwargs(**kwargs):
          return kwargs
  
      exe_values = [
          make_kwargs(*m.args, **m.kwargs)
          for m in item.iter_markers(name="exe")
      ]
  
      if only:
          if exe_values:
              return None
          return pytest.mark.skip(reason=f"skipped by {ONLY_EXE} flag")
      elif exe_values:
          assert len(exe_values) == 1
          (kwargs,) = exe_values
  
          if kwargs.pop("xfail", None):
              kwargs.setdefault("reason", f"xfail by {SKIP_EXE} flag")
              return pytest.mark.xfail(**kwargs)
          else:
              kwargs.setdefault("reason", f"skipped by {SKIP_EXE} flag")
              return pytest.mark.skip(**kwargs)
  
      return None
  
file_path: graphviz/tests/conftest.py
imports: import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: _make_exe_marker(item, only) and returns: None, kwargs, pytest, None, pytest, pytest