code: def get_trimmed_traceback(exception=None):
      """Return the current traceback, minus any frames added by Hypothesis."""
      if exception is None:
          _, exception, tb = sys.exc_info()
      else:
          tb = exception.__traceback__
      # Avoid trimming the traceback if we're in verbose mode, or the error
      # was raised inside Hypothesis
      if (
          tb is None
          or hypothesis.settings.default.verbosity
          >= hypothesis.Verbosity.debug
          or is_hypothesis_file(traceback.extract_tb(tb)[-1][0])
          and not isinstance(exception, _Trimmable)
      ):
          return tb
      while tb.tb_next is not None and (
          # If the frame is from one of our files, it's been added by Hypothesis.
          is_hypothesis_file(getframeinfo(tb.tb_frame).filename)
          # But our `@proxies` decorator overrides the source location,
          # so we check for an attribute it injects into the frame too.
          or tb.tb_frame.f_globals.get("__hypothesistracebackhide__")
          is True
      ):
          tb = tb.tb_next
      return tb
  
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 3 for calling a global function with example usage: get_trimmed_traceback(exception) and returns: tb, tb