code: def _is_wrapped_exception(obj: Any) -> bool:
      if not isinstance(obj, tuple):
          return False
      if len(obj) != 2:
          return False
      return isinstance(obj[0], BaseException) and isinstance(
          obj[1], tb.StackSummary
      )
  
file_path: pytorch/torch/distributed/checkpoint/api.py
imports: import traceback
  from typing import Any, Dict, Tuple
label_desc: Use image node_id 2 for calling a global function with example usage: _is_wrapped_exception(obj) and returns: unknown, False, False