code: def _is_authenticated(self):
          
          if not self.auth_api_client.is_valid_api_key():
              raise CartoException(
                  'Cannot authenticate user `{}`. Check credentials.'.format(
                      self.creds.username()))
docs: Checks if credentials allow for authenticated carto access