def test_alias_fields(self):
        """Test that alias fields are correctly handled."""
        data = {
            "modality": "language",
            "contents": ["Sample text"],
            "modelConfig": self.model_config,
            "preprocessingConfig": TextPreprocessingConfig(),
            "useInferenceCache": True
        }
        request = InferenceRequest(**data)
        self.assertEqual(request.modality, Modality.TEXT)
        self.assertTrue(request.use_inference_cache)
        self.assertEqual(request.model_config, self.model_config)
Test that alias fields are correctly handled.
tests/unit_tests/marqo/core/inference/api/test_inference_model_classes.py