code: def test_write_io_timeout(
      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]"
      )
  
imports: import logging
  import sys
  import unittest
  import pytest
  import tvm.testing
label_desc: Use image node_id 15 for calling a global function with example usage: test_write_io_timeout(transport, transport_logger, get_latest_log) without return types