try: from google.api_core import exceptions print("google.api_core.exceptions found") print(f"ResourceExhausted: {exceptions.ResourceExhausted}") print(f"Unauthenticated: {exceptions.Unauthenticated}") print(f"PermissionDenied: {exceptions.PermissionDenied}") except ImportError: print("google.api_core.exceptions NOT found") try: from google import genai print("google.genai found") except ImportError: print("google.genai NOT found")