torch_ecg.utils.timeout# torch_ecg.utils.timeout(duration: float | int)[source]# A context manager that raises a TimeoutError after a specified time (in seconds). Parameters: duration (float) – The time duration in seconds, should be non-negative, 0 for no timeout.