def METHOD_NAME(command, args="", env=None, runas=None, ret=None):
    if not is_installed(runas):
        return False
    binary = _pyenv_bin(runas)
    path = _pyenv_path(runas)
    if env:
        env = " {}".format(env)
    env = env or ""
    binary = "env PYENV_ROOT={}{} {}".format(path, env, binary)
    result = __salt__["cmd.run_all"](
        "{} {} {}".format(binary, command, args), runas=runas
    )
    if isinstance(ret, dict):
        ret.update(result)
        return ret
    if result["retcode"] == 0:
        return result["stdout"]
    else:
        return False