def test_empty_contents(self):
        """Test that empty contents list raises a ValidationError."""
        with self.assertRaises(ValidationError) as context:
            InferenceRequest(
                modality=Modality.TEXT,
                contents=[],
                model_config=self.model_config,
                preprocessing_config=TextPreprocessingConfig()
            )
        self.assertIn('ensure this value has at least 1 items', str(context.exception))
Test that empty contents list raises a ValidationError.
tests/unit_tests/marqo/core/inference/api/test_inference_model_classes.py