def test_to_device_called_on_preprocessor_for_text(self):
        """A test to ensure the Tensor is moved to the correct device when self.preprocessor.preprocess is called."""
        test_texts = ["Marqo is awesome!", "Testing OpenCLIP Preprocessor."]
        text_outputs = self.preprocessor.preprocess(test_texts, modality=Modality.TEXT)

        self.assertIsInstance(text_outputs, list)
        self.assertEqual(2, len(text_outputs))

        for text_output in text_outputs:
            self.assertIsInstance(text_output, Tensor)
            self.assertEqual(text_output.device.type, self.device)
A test to ensure the Tensor is moved to the correct device when self.preprocessor.preprocess is called.
tests/integ_tests/inference/native_inference/embedding_models/test_open_clip_preprocessor.py