def METHOD_NAME(transport, transport_logger, get_latest_log):
    # IoTimeoutError includes the timeout value.
    transport.exc = tvm.micro.transport.IoTimeoutError()
    with pytest.raises(tvm.micro.transport.IoTimeoutError):
        transport_logger.write(b"data", 0.0)
    assert get_latest_log() == ("foo: write { 0.00s}       <- [  4 B]: [IoTimeoutError  0.00s]")