code: def write_transport(self, data, timeout_sec):
      if self._proc is None:
          raise server.TransportClosedError()
  
      fd = self._proc.stdin.fileno()
      end_time = (
          None
          if timeout_sec is None
          else time.monotonic() + timeout_sec
      )
  
      data_len = len(data)
      while data:
          self._await_ready([], [fd], end_time=end_time)
          try:
              num_written = os.write(fd, data)
          except BrokenPipeError:
              num_written = 0
  
          if not num_written:
              self.close_transport()
              raise server.TransportClosedError()
  
          data = data[num_written:]
  
imports: import fcntl
  import os
  import os.path
  import pathlib
  import select
  import shutil
  import subprocess
  import tarfile
  import time
  import re
  from tvm.micro.project_api import server
label_desc: Use image node_id 12 for calling the Handler obj's underlying member method code with example usage: obj.write_transport(data, timeout_sec) without return types