def METHOD_NAME(self, cmd, check_status=True, timeout=240):
    """
    Run command in guest
    :param cmd: A command needed to run
    :param check_status: If true, check the status after running the cmd
    :return: The output after running the cmd
    """
    status, output = self.session.cmd_status_output(cmd, timeout=timeout)
    if check_status and status != 0:
        self.test.fail("Execute command '%s' failed, output: %s" % (cmd, output))
    return output.strip()