def test_populate_chunks_and_embeddings_for_text_image_both_top_level_and_sub_fields_with_single_different_chunk(self):
        """
        Tests when text and image (both subfield and top level field) gets populated as top level field with single
        chunk, but the chunk is different from the content. we should not populate the subfield embeddings since the
        chunk used for generating embedding is different
        """
        for modality in [Modality.TEXT, Modality.IMAGE]:
            with self.subTest(modality=modality):
                field = TensorField(
                    doc_id='id',
                    field_name='field_1',
                    field_content="text or url",
                    modality=modality,
                    is_top_level_tensor_field=True,
                    is_multimodal_subfield=True
                )
                field.populate_chunks_and_embeddings(["chunk1"],
                                                     [[1.0, 2.0]],
                                                     for_top_level_field=True)
                self.assertEqual(["chunk1"], field.tensor_field_chunks)
                self.assertEqual([[1.0, 2.0]], field.tensor_field_embeddings)

                # we don't populate the subfield embedding if the single chunk does not match the content
                self.assertIsNone(field.multimodal_subfield_embedding)
                # not resolved since we still need to generate unchunked embeddings
                self.assertFalse(field.is_resolved)

        Tests when text and image (both subfield and top level field) gets populated as top level field with single
        chunk, but the chunk is different from the content. we should not populate the subfield embeddings since the
        chunk used for generating embedding is different
        
tests/unit_tests/marqo/core/inference/test_tensor_field.py