code: def _get_tokens_cached(self, cli):
          
          return self._token_cache.get(
              cli.render_counter, lambda: self.get_tokens(cli))
docs: Get tokens, but only retrieve tokens once during one render run.
          (This function is called several times during one rendering, because
          we also need those for calculating the dimensions.)