def test_cache_initializationCacheType_success(self):
        """Test if the cache initializes with the correct size and type."""
        test_cases = [
            {"cache_size": 10, "cache_type": "LRU", "expected": "LRU"},
            {"cache_size": 10, "cache_type": "LFU", "expected": "LFU"}
        ]
        for test_case in test_cases:
            with self.subTest(test_case):
                cache = MarqoInferenceCache(cache_size=test_case["cache_size"],
                                            cache_type=test_case["cache_type"])
                self.assertEqual(test_case["cache_size"], cache._cache.maxsize)
                self.assertTrue(isinstance(cache._cache,
                                           MarqoInferenceCache._CACHE_TYPES_MAPPING[test_case["expected"]]))
                self.assertEqual(0, cache._cache.currsize)
Test if the cache initializes with the correct size and type.
tests/unit_tests/marqo/inference/inference_cache/test_marqo_inference_cache.py