def parse_log_line()

in read_stall_retry/timeout_variation_in_pod.py [0:0]


def parse_log_line(line: str) -> Tuple[str, str] | None:
    """Parses a single log line and returns timestamp and time_taken."""
    match = LOG_PATTERN.match(line)
    if match:
        timestamp = match.group(1).split(" ")[1]  # Extracting HH:MM:SS
        time_taken = match.group(2)
        return timestamp, time_taken
    return None