def mock_model():
    """Fixture to create a mock model object."""
    model = MagicMock(spec=GenerativeModel)
    model._tools = None
    return model
Fixture to create a mock model object.
ai/integrations/gemini/tests/test_gemini_utils.py