code: def execute(function, *args, **kwargs):
      
      try:
          return function(*args, **kwargs)
      except Exception as error:
          error.traceback = format_exc()
          return error
docs: Runs the given function returning its results or exception.