def test_clear_all_caches(self, mock_execution_store):
        """Test that all caches can be cleared."""

        @execution_cache(ttl=60)
        def my_func():
            pass

        mock_store = MagicMock()
        mock_execution_store.create.return_value = mock_store
        function_id = _get_function_id(my_func)
        self.assertIsNotNone(function_id)
        store_name = _resolve_store_name(my_func)
        self.assertIsNotNone(store_name)
        my_func.clear_all_caches(dataset_id="mock-dataset-id")

        mock_execution_store.create.assert_called_with(
            dataset_id="mock-dataset-id",
            store_name=store_name,
            collection_name=None,
        )
        mock_store.clear_cache.assert_called_once()

        with self.assertRaises(ValueError):
            my_func.clear_all_caches()
Test that all caches can be cleared.
tests/unittests/execution_cache/decorator_tests.py