code: def _check_all_skipped(test):
      """raises pytest.skip() if all examples in the given DocTest have the SKIP
      option set.
      """
      import doctest
  
      all_skipped = all(
          x.options.get(doctest.SKIP, False) for x in test.examples
      )
      if all_skipped:
          pytest.skip("all tests skipped by +SKIP option")
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import inspect
  import platform
  import sys
  import traceback
  import warnings
  from contextlib import contextmanager
  import pytest
  from _pytest._code.code import ExceptionInfo
  from _pytest._code.code import ReprFileLocation
  from _pytest._code.code import TerminalRepr
  from _pytest.compat import safe_getattr
  from _pytest.fixtures import FixtureRequest
  from _pytest.outcomes import Skipped
  from _pytest.warning_types import PytestWarning
label_desc: Use image node_id 10 for calling a global function with example usage: _check_all_skipped(test) without return types