code: def filter_traceback(fn):
      """Filter out Keras-internal traceback frames in exceptions raised by fn."""
  
      @wraps(fn)
      def error_handler(*args, **kwargs):
          if not is_traceback_filtering_enabled():
              return fn(*args, **kwargs)
  
          filtered_tb = None
          try:
              return fn(*args, **kwargs)
          except Exception as e:
              filtered_tb = _process_traceback_frames(e.__traceback__)
              # To get the full stack trace, call:
              # `keras.config.disable_traceback_filtering()`
              raise e.with_traceback(filtered_tb) from None
          finally:
              del filtered_tb
  
      return error_handler
  
file_path: keras/keras/utils/traceback_utils.py
imports: import inspect
  import os
  import traceback
  import types
  from functools import wraps
  import tree
  from keras import backend
  from keras.api_export import keras_export
  from keras.backend.common import global_state
label_desc: Use image node_id 6 for calling a global function with example usage: filter_traceback(fn) and returns: error_handler, fn, fn