def test_retry_decorator_exceeds_retries(self):
        """Ensures the function raises exception after exceeding retries."""

        class TestClass:
            retries = 3
            backoff_factor = 0.1
            timeout = 10

            call_count = 0

            @_retry_decorator
            def test_method(self):
                self.call_count += 1
                raise ExtendedRequestException(
                    "Error",
                    original_exception=httpx.RequestError("Error"),
                    response_text="test",
                )

        test_instance = TestClass()
        with pytest.raises(ExtendedRequestException):
            test_instance.test_method()
        assert test_instance.call_count == 3  # initial attempt + 2 retries
Ensures the function raises exception after exceeding retries.
llama-index-integrations/embeddings/llama-index-embeddings-oci-data-science/tests/test_oci_data_science_client.py