def test_collect_valid_content_to_encode_with_error_model(self):
        """Ensure the method skip the error model."""
        error_model = InferenceErrorModel(error_message="error")
        preprocessed_content = [error_model]

        result = self.pipeline._collect_valid_content_to_encode(preprocessed_content)
        self.assertEqual(result, [])
Ensure the method skip the error model.
tests/unit_tests/marqo/inference/native_inference/test_languagebind_model_inference_pipeline.py