docs: def write(self, data):
          """
          Write *n* bytes to the subprocess' input channel.
  
          Args:
              data(bytes): The data to write.
  
          Raises:
              EOFError: If the process exited.
          """
  
          self._process.poll()
          if self._process.returncode is not None:
              raise EOFError('Process ended')
          self._process.stdin.write(data)