class_docstr: Runs test snippets in the documentation.
code: def skipped(self, node: Element) -> bool:
      if "skipif" not in node:
          return False
      else:
          condition = node["skipif"]
          context: dict[str, Any] = {}
          if self.config.doctest_global_setup:
              exec(
                  self.config.doctest_global_setup, context
              )  # NoQA: S102
          should_skip = eval(condition, context)  # NoQA: PGH001
          if self.config.doctest_global_cleanup:
              exec(
                  self.config.doctest_global_cleanup, context
              )  # NoQA: S102
          return should_skip
  
imports: from __future__ import annotations
  import doctest
  import re
  import sys
  import time
  from io import StringIO
  from os import path
  from typing import TYPE_CHECKING, Any, Callable
  from docutils import nodes
  from docutils.parsers.rst import directives
  from packaging.specifiers import InvalidSpecifier, SpecifierSet
  from packaging.version import Version
  import sphinx
  from sphinx.builders import Builder
  from sphinx.locale import __
  from sphinx.util import logging
  from sphinx.util.console import bold
  from sphinx.util.docutils import SphinxDirective
  from sphinx.util.osutil import relpath
label_desc: Use image node_id 10 for calling the DocTestBuilder obj's underlying member method code with example usage: obj.skipped(node) and returns: False, should_skip