code: def _get_continue_on_failure(config):
      continue_on_failure = config.getvalue(
          "doctest_continue_on_failure"
      )
      if continue_on_failure:
          # We need to turn off this if we use pdb since we should stop at
          # the first failure
          if config.getvalue("usepdb"):
              continue_on_failure = False
      return continue_on_failure
  
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 9 for calling a global function with example usage: _get_continue_on_failure(config) and returns: continue_on_failure