code: def _is_under_reraiser(e: BaseException) -> bool:
      if e.__traceback__ is None:
          return False
      tb = traceback.extract_stack(e.__traceback__.tb_frame)
      return any(_is_reraiser_frame(f) for f in tb[:-1])
  
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 9 for calling a global function with example usage: _is_under_reraiser(e) and returns: any, False