def test_default_values(self):
        """Test that default values are set correctly when optional fields are not provided."""
        request = InferenceRequest(
            modality=Modality.IMAGE,
            contents=["image1.png", "image2.png"],
            model_config=self.model_config,
            preprocessing_config=ImagePreprocessingConfig()
        )
        self.assertIsNone(request.device)
        self.assertFalse(request.use_inference_cache)
        self.assertTrue(request.return_individual_error)
Test that default values are set correctly when optional fields are not provided.
tests/unit_tests/marqo/core/inference/api/test_inference_model_classes.py