def test_correct_error_is_raised_if_rerank_depth_is_provided_on_old_marqo_version(self):
        """
        Tests that an error is raised if rerank_depth is provided on an old marqo version.
        """

        with self.assertRaises(core_exceptions.UnsupportedFeatureError) as e:
            tensor_search.search(
                config=self.config,
                index_name=self.unstructured_default_text_index.name,
                text="dogs",
                search_method="HYBRID",
                rerank_depth=3,
                result_count=3
            )

        self.assertIn("Marqo version 2.15.0 or later", str(e.exception))

        _ = tensor_search.search(
            config=self.config,
            index_name=self.unstructured_default_text_index.name,
            text="dogs",
            search_method="HYBRID",
            # rerank_depth=3, # This should not raise an error
            result_count=3
        )

        Tests that an error is raised if rerank_depth is provided on an old marqo version.
        
tests/integ_tests/tensor_search/integ_tests/test_hybrid_search.py