def METHOD_NAME(self):
    credentials = _make_credentials()
    env = EnvironmentVarGuard()
    env.set('KAGGLE_USER_SECRETS_TOKEN', 'foobar')
    env.set('KAGGLE_KERNEL_INTEGRATIONS', 'CLOUDAI')
    with env:
        init_automl()
        client = automl.AutoMlClient(credentials=credentials)
        self.assertNotIsInstance(client.credentials, KaggleKernelCredentials)
        self.assertIsNotNone(client.credentials)