code: def _reraise_with_traceback(f):
      
  
      def wrap(*args, **kwargs):
          try:
              return f(*args, **kwargs)
          except Exception as e:
              traceback_str = traceback.format_exc()
              e.traceback = traceback_str
              raise e
  
      return wrap
docs: Call the function normally. But if the function raises an error, attach the str(traceback)
      into the function.traceback attribute, then reraise the error.
      Args:
          f: The function to run.
  
      Returns: A function that wraps f, attaching the traceback if an error occurred.