code: def _get_exceptioninfo():
      # ExceptionInfo was moved to the top-level namespace in Pytest 7.0
      if "pytest" in sys.modules:
          with contextlib.suppress(Exception):
              # From Pytest 7, __init__ warns on direct calls.
              return sys.modules["pytest"].ExceptionInfo.from_exc_info
      if "_pytest._code" in sys.modules:  # old versions only
          with contextlib.suppress(Exception):
              return sys.modules["_pytest._code"].ExceptionInfo
      return None
  
imports: import contextlib
  import os
  import sys
  import textwrap
  import traceback
  from inspect import getframeinfo
  from pathlib import Path
  from typing import Dict, NamedTuple, Optional, Type
  import hypothesis
  from hypothesis.errors import DeadlineExceeded, HypothesisException, StopTest, UnsatisfiedAssumption, _Trimmable
  from hypothesis.internal.compat import BaseExceptionGroup
  from hypothesis.utils.dynamicvariables import DynamicVariable
label_desc: Use image node_id 4 for calling a global function with example usage: _get_exceptioninfo() and returns: None, sys, sys