@decorators.memoize
def _check_features():
    # get man location
    man = salt.utils.which('man')
    if not man:
        return False

    cmd = '{man} zpool-features'.format(
        man=man
    )
    res = __salt__['cmd.run_all'](cmd, python_shell=False)
    return res['retcode'] == 0
Looks to see if zpool-features is available
dataset/ETHPy150Open saltstack/salt/salt/modules/zpool.py/_check_features