code: def format_exception_only(e: BaseException) -> str:
      return "".join(
          traceback.format_exception_only(type(e), e)
      ).strip()
  
imports: from __future__ import annotations
  import functools
  import os
  import sys
  import traceback
  import types
  from typing import Any, Callable, TypeVar, cast
  from jax._src import config
  from jax._src import util
  from jax._src.lib import xla_extension
label_desc: Use image node_id 10 for calling a global function with example usage: format_exception_only(e) and returns: str