code: def _is_unittest_unexpected_success_a_failure():
      """Return if the test suite should fail if an @expectedFailure unittest test PASSES.
  
      From https://docs.python.org/3/library/unittest.html?highlight=unittest#unittest.TestResult.wasSuccessful:
          Changed in version 3.4: Returns False if there were any
          unexpectedSuccesses from tests marked with the expectedFailure() decorator.
      """
      return sys.version_info >= (3, 4)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import codecs
  import functools
  import inspect
  import re
  import sys
  from contextlib import contextmanager
  import attr
  import py
  import six
  from six import text_type
  import _pytest
  from _pytest._io.saferepr import saferepr
  from _pytest.outcomes import fail
  from _pytest.outcomes import TEST_OUTCOME
label_desc: Use image node_id 16 for calling a global function with example usage: _is_unittest_unexpected_success_a_failure() and returns: unknown