code: def execute(self, cmd, block_size=DEFAULT_EXECUTE_READ_BLOCK_SIZE):
          
      
          with SshChannel(self) as sc:
              self.__log.debug("Executing command: %s" % (cmd))
  
              sc.open_session()
              sc.request_exec(cmd)
  
              buffer_ = bytearray()
              while 1:
                  bytes = sc.read(block_size)
                  yield bytes
                  
                  if len(bytes) < block_size:
                      break
docs: Execute a remote command. This functionality does not support more 
          than one command to be executed on the same channel, so we create a 
          dedicated channel at the session level than allowing direct access at
          the channel level.