def METHOD_NAME(self):
    """
    Tests previous KAGGLE_KERNEL_INTEGRATIONS="AUTOML" environment setting
    """
    env = EnvironmentVarGuard()
    env.set('KAGGLE_USER_SECRETS_TOKEN', 'foobar')
    env.set('KAGGLE_KERNEL_INTEGRATIONS', 'AUTOML')
    with env:
        prediction_client = automl_v1beta1.PredictionServiceClient()
        self.assertIsNotNone(prediction_client.credentials)
        self.assertIsInstance(prediction_client.credentials, KaggleKernelCredentials)
        self.assertTrue(prediction_client._connection.user_agent.startswith("kaggle-gcp-client/1.0")