def METHOD_NAME(self, unused_signum: Any, unused_frame: Any) -> None:
    if self.start_time is None:
        raise RuntimeError("Timed out")
    raise RuntimeError("Timed out after %.2f seconds" % (time.time() - self.start_time))