code: def get_trimmed_traceback():
      """Return the current traceback, minus any frames added by Hypothesis."""
      error_type, _, tb = sys.exc_info()
      # Avoid trimming the traceback if we're in verbose mode, or the error
      # was raised inside Hypothesis (and is not a MultipleFailures)
      if (
          hypothesis.settings.default.verbosity
          >= hypothesis.Verbosity.debug
          or (
              is_hypothesis_file(traceback.extract_tb(tb)[-1][0])
              and not isinstance(error_type, MultipleFailures)
          )
      ):
          return tb
      while tb 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)[0])
          # 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
  
file_path: catboost/contrib/python/hypothesis/py2/hypothesis/internal/escalation.py
imports: from __future__ import absolute_import, division, print_function
  import os
  import sys
  import traceback
  from inspect import getframeinfo
  import hypothesis
  from hypothesis.errors import DeadlineExceeded, HypothesisException, MultipleFailures, StopTest, UnsatisfiedAssumption
  from hypothesis.internal.compat import binary_type, encoded_filepath, text_type
label_desc: Use image node_id 4 for calling a global function with example usage: get_trimmed_traceback() and returns: tb, tb