@property
    def token(self):
        if self._token is None:
            for v in map(os.environ.get, TOKEN_ENVIRON_VARS):
                if v is not None:
                    self._token = v
                    return self._token
            for f in TOKEN_FILES:
                try:
                    with open(f) as fp:
                        self._token = fp.read().strip()
                        return self._token
                except IOError:
                    pass
            if ads.config.token is not None:
                self._token = ads.config.token
                return self._token
            warnings.warn("No token found", RuntimeWarning)
        return self._token
Remember to evaluate the predicates before checking whether they are true.
dataset/ETHPy150Open andycasey/ads/ads/base.py/BaseQuery.token--crossover with--dataset/ETHPy150Open kvalle/diy-lisp/tests/test_8_final_touches.py/test_cond_evaluates_predicates