def test_encode_processed_content_mismatch_embeddings(self):
        """Test to ensure that the method raises an error when the number of
        embeddings does not match the number of contents."""
        tensor_mock = Mock(spec=Tensor)
        preprocessed_content = [[("chunk", tensor_mock), ("chunk", tensor_mock)]]
        # Force only one embedding to simulate mismatch
        self.mock_model.encode.return_value = [np.random.rand(768)]

        with self.assertRaises(ValueError):
            self.pipeline._encode_processed_content(preprocessed_content)
Test to ensure that the method raises an error when the number of
        embeddings does not match the number of contents.
tests/unit_tests/marqo/inference/native_inference/test_languagebind_model_inference_pipeline.py