def METHOD_NAME(check_cmd, test):
    """
    Setup for restore --bypass-cache option
    :param check_cmd: command to check bypass cache
    :param test: test instance
    :return: subprocess instance to run check command
    """
    sm = software_manager.SoftwareManager()
    if not sm.check_installed('lsof'):
        test.error("Need to install lsof on host")
    sp = process.SubProcess(check_cmd, shell=True)
    sp.start()
    return sp