def test_video_size_limit(self):
        """Ensure that the MediaExceedsMaxSizeError is converted to InvalidArgError."""
        with mock.patch(
                "marqo.inference.native_inference.local_inference.NativeInferenceLocal.vectorise") as mock_vectorise:
            mock_vectorise.side_effect = MediaExceedsMaxSizeError("exceeds the maximum allowed size")
            with self.assertRaises(api_exceptions.InvalidArgError) as e:
                tensor_search.search(
                    config=self.config,
                    index_name=self.unstructured_languagebind_index.name,  # Use an index that supports video
                    text="http://example.com/large_video.mp4",
                    search_method=SearchMethod.TENSOR,
                )
            self.assertIn("exceeds the maximum allowed size", str(e.exception))
Ensure that the MediaExceedsMaxSizeError is converted to InvalidArgError.
tests/integ_tests/tensor_search/integ_tests/test_search_combined.py