def _get_report_choice(key):
import doctest<EOL>return {<EOL>DOCTEST_REPORT_CHOICE_UDIFF: doctest.REPORT_UDIFF,<EOL>DOCTEST_REPORT_CHOICE_CDIFF: doctest.REPORT_CDIFF,<EOL>DOCTEST_REPORT_CHOICE_NDIFF: doctest.REPORT_NDIFF,<EOL>DOCTEST_REPORT_CHOICE_ONLY_FIRST_FAILURE: doctest.REPORT_ONLY_FIRST_FAILURE,<EOL>DOCTEST_REPORT_CHOICE_NONE: <NUM_LIT:0>,<EOL>}[key]<EOL>
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.