code: def _get_report_choice(key):
      """
      This function returns the actual `doctest` module flag value, we want to do it as late as possible to avoid
      importing `doctest` and all its dependencies when parsing options, as it adds overhead and breaks tests.
      """
      import doctest
  
      return {
          DOCTEST_REPORT_CHOICE_UDIFF: doctest.REPORT_UDIFF,
          DOCTEST_REPORT_CHOICE_CDIFF: doctest.REPORT_CDIFF,
          DOCTEST_REPORT_CHOICE_NDIFF: doctest.REPORT_NDIFF,
          DOCTEST_REPORT_CHOICE_ONLY_FIRST_FAILURE: doctest.REPORT_ONLY_FIRST_FAILURE,
          DOCTEST_REPORT_CHOICE_NONE: 0,
      }[key]
  
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 17 for calling a global function with example usage: _get_report_choice(key) and returns: dict