def test_cache_initializationCacheType_fail(self):
        """Test if the cache raises an error for an invalid cache type."""
        test_cases = [
            {"cache_size": 10, "cache_type": "INVALID"},  # Invalid cache type
            {"cache_size": 10, "cache_type": 1},  # Invalid cache type
            {"cache_size": 1.4, "cache_type": "LFU"},  # Invalid cache size
            {"cache_size": -1, "cache_type": "LRU"},  # Invalid cache size
            {"cache_size": 0, "cache_type": "LRU"},  # Invalid cache size
            {"cache_size": "str", "cache_type": "LRU"}  # Invalid cache size
        ]
        for test_case in test_cases:
            with self.subTest(test_case):
                with self.assertRaises(EnvVarError):
                    MarqoInferenceCache(cache_size=test_case["cache_size"], cache_type=test_case["cache_type"])
Test if the cache raises an error for an invalid cache type.
tests/unit_tests/marqo/inference/inference_cache/test_marqo_inference_cache.py