def METHOD_NAME(self):
    env = EnvironmentVarGuard()
    env.set('KAGGLE_USER_SECRETS_TOKEN', 'foobar')
    env.set('KAGGLE_KERNEL_INTEGRATIONS', 'CLOUDAI')
    with env:
        init_automl()
        automl_client = automl_v1beta1.AutoMlClient()
        self.assertIsNotNone(automl_client.credentials)
        self.assertIsInstance(automl_client.credentials, KaggleKernelCredentials)
        self.assertTrue(automl_client._connection.user_agent.startswith("kaggle-gcp-client/1.0"))