def METHOD_NAME(session, name):
    """ Check whether the stress is alive. """
    name = name.upper() + '.EXE' if windows else name
    chk_cmd = 'TASKLIST /FI "IMAGENAME eq %s' if windows else 'pgrep -xl %s'
    return re.search(name, session.cmd_output(chk_cmd % name), re.I | re.M)