def mock_google_genai() -> GoogleGenAI:
    """Fixture to create a mocked GoogleGenAI instance for unit testing."""
    with patch("google.genai.Client") as mock_client_class:
        # Mock the client and its methods
        mock_client = MagicMock()
        mock_client.models.get.return_value = MagicMock(
            input_token_limit=200000, output_token_limit=8192
        )
        mock_client_class.return_value = mock_client

        return GoogleGenAI(model="models/gemini-2.0-flash-001", api_key="test-key")
Fixture to create a mocked GoogleGenAI instance for unit testing.
llama-index-integrations/llms/llama-index-llms-google-genai/tests/test_llms_google_genai.py