def test_immutability(self):
        """Test that the ModelConfig instance is immutable."""
        config = ModelConfig(
            modelName="immutable_model",
            normalizeEmbeddings=True
        )
        with self.assertRaises(TypeError) as context:
            config.model_name = "new_model_name"
        self.assertIn('"ModelConfig" is immutable and does not support item assignment', str(context.exception))
Test that the ModelConfig instance is immutable.
tests/unit_tests/marqo/core/inference/api/test_inference_model_classes.py