def test_to_device_called_on_preprocessor_for_image(self):
        """A test to ensure the Tensor is moved to the correct device when self.preprocessor.preprocess is called."""
        test_image_path = [TestImageUrls.IMAGE1.value, TestImageUrls.IMAGE2.value]
        test_images = [load_image_from_path(image_path, media_download_headers=dict()) for image_path in test_image_path]

        image_outputs = self.preprocessor.preprocess(test_images, modality=Modality.IMAGE)

        # Assertions for image tensors
        self.assertIsInstance(image_outputs, list)
        self.assertEqual(2, len(image_outputs))

        for tensor in image_outputs:
            self.assertIsInstance(tensor, Tensor)
            # Check tensor is on the correct device
            self.assertEqual(tensor.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