code: def write_command(self, command: Command):
          '''Write a command to the stream.
  
          Args:
              command: The command.
  
          Coroutine.
          '''
          _logger.debug('Write command.')
          data = command.to_bytes()
          yield from self._connection.write(data)
          self._data_event_dispatcher.notify_write(dataf write_command(self, command: Command):
          '''Write a command to the stream.
  
          Args:
              command: The command.
  
          Coroutine.
          '''
          _logger.debug('Write command.')
          data = command.to_bytes()
          yield from self._connection.write(data)
          self._data_event_dispatcher.notify_write(data)
docs: Write a command to the stream.
  
          Args:
              command: The command.
  
          Coroutine.