def METHOD_NAME(mock_toolkit_details):
    # Mock the database session and query functions
    with patch('superagi.helper.auth.get_user_organisation') as mock_get_user_org, \
            patch('superagi.models.toolkit.Toolkit.fetch_marketplace_detail') as mock_fetch_marketplace_detail, \
            patch('superagi.models.toolkit.Toolkit.add_or_update') as mock_add_or_update, \
            patch('superagi.models.tool.Tool.add_or_update') as mock_tool_add_or_update, \
            patch('superagi.controllers.toolkit.db') as mock_db, \
            patch('superagi.helper.auth.db') as mock_auth_db, \
            patch('superagi.models.tool_config.ToolConfig.add_or_update') as mock_tool_config_add_or_update:
        # Set up mock data and behavior
        mock_get_user_org.return_value = Organisation(id=1)
        mock_fetch_marketplace_detail.return_value = mock_toolkit_details
        mock_add_or_update.return_value = Toolkit(id=1, name=mock_toolkit_details['name'],
                                                  description=mock_toolkit_details['description'])
        # Call the function
        response = client.get("/toolkits/get/install/toolkit_1")
        # Assertions
        assert response.status_code == 200
        assert response.json() == {"message": "ToolKit installed successfully"}
        # Verify the function calls
        mock_fetch_marketplace_detail.assert_called_once_with(search_str="details", toolkit_name="toolkit_1")