code: def __init__(self, target: Callable[..., Any], args: tuple):
      threading.Thread.__init__(self, target=target, args=args)
      self.exc: BaseException | None = None
  
file_path: optuna/optuna/testing/threading.py
imports: from __future__ import annotations
  import threading
  from typing import Any
  from typing import Callable
label_desc: Use image node_id 1 to create a new _TestableThread object from inherited base classes: threading with example: obj = _TestableThread(target, args)