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_translation_v2()
        client = translate_v2.Client(credentials=credentials)
        self.assertIsNotNone(client.credentials)
        self.assertNotIsInstance(client.credentials, KaggleKernelCredentials)