code: def capture_exception(fn):
      
      def wrapped(*args):
          try:
              return fn(*args)
          except Exception as e:
              return e
      return wrapped
docs: decorator that catches and returns an exception from wrapped function