def METHOD_NAME(runas=None):
    path = None
    if runas in (None, "root"):
        path = __salt__["config.option"]("pyenv.root") or "/usr/local/pyenv"
    else:
        path = __salt__["config.option"]("pyenv.root") or "~{}/.pyenv".format(runas)
    return os.path.expanduser(path)