def test_invalid_contents_type(self):
        """Test that non-list contents raise a ValidationError."""
        with self.assertRaises(ValidationError) as context:
            InferenceRequest(
                modality=Modality.VIDEO,
                contents="This should be a list",
                model_config=self.model_config,
                preprocessing_config=TextPreprocessingConfig()
            )
        self.assertIn('value is not a valid list', str(context.exception))
Test that non-list contents raise a ValidationError.
tests/unit_tests/marqo/core/inference/api/test_inference_model_classes.py