code: def check_output(self, cmd):
          
          ret, output = self._call(cmd, True)
          if ret != 0:  # pragma: no cover
              raise RemoteCommandFailure(command=cmd, ret=ret)
          logger.debug("Output: %r", output)
          return output
docs: Calls a command through SSH and returns its output.