add format_exception() exception
+import traceback
import ast
+def format_exception(e: Exception) -> str:
+ return "".join(traceback.format_exception(type(e), e, e.__traceback__, 4))
+
+
async def execute_code(code: str, env: dict) -> object:
code_parsed = ast.parse("async def _eval_code():\n" + "\n".join(f" {i}" for i in code.splitlines()))
