class_docstr: MicroTVM Device Session
  
  Parameters
  ----------
  config : dict
      configuration for this session (as generated by
      `tvm.micro.device.host.default_config()`, for example)
  
  Example
  --------
  .. code-block:: python
  
    c_mod = ...  # some module generated with "c" as the target
    dev_config = micro.device.arm.stm32f746xx.default_config('127.0.0.1', 6666)
    with tvm.micro.Session(dev_config) as sess:
        micro_mod = sess.create_micro_mod(c_mod)
class_docstr_tok: ["MicroTVM","Device","Session","Parameters","--","--","--","--","--","config",":","dict","configuration","for","this","session","(","as","generated","by","`","tvm.micro.device.host.default_config","(",")","`",",","for","example",")","Example","--","--","--","--","..","code-block",":",":","python","c_mod","=","...","#","some","module","generated","with","``","c","''","as","the","target","dev_config","=","micro.device.arm.stm32f746xx.default_config","(","'127.0.0.1","'",",","6666",")","with","tvm.micro.Session","(","dev_config",")","as","sess",":","micro_mod","=","sess.create_micro_mod","(","c_mod",")"]
code: def _wrap_transport_read(self, n, timeout_microsec):
      try:
          return self.transport.read(
              n,
              float(timeout_microsec) / 1e6
              if timeout_microsec is not None
              else None,
          )
      except IoTimeoutError:
          return bytes([])
  
imports: import json
  import logging
  import sys
  import os
  import pathlib
  import shutil
  from typing import Union
  from tvm.runtime.executor.aot_executor import AotModule
  from ..error import register_error
  from .._ffi import get_global_func, register_func
  from ..contrib import graph_executor
  from ..contrib import utils
  from ..contrib.debugger import debug_executor
  from ..rpc import RPCSession
  from .None import project
  from .transport import IoTimeoutError
  from .transport import TransportLogger
label_desc: Use image node_id 4 for calling the Session obj's underlying member method code with example usage: obj._wrap_transport_read(n, timeout_microsec) and returns: self, bytes