def test_retry_decorator_no_retries(self):
        """Ensures the function is called directly when retries is 0."""

        class TestClass:
            retries = 0
            backoff_factor = 1
            timeout = 10

            @_retry_decorator
            def test_method(self):
                return "Success"

        test_instance = TestClass()
        result = test_instance.test_method()
        assert result == "Success"
Ensures the function is called directly when retries is 0.
llama-index-integrations/llms/llama-index-llms-oci-data-science/tests/test_oci_data_science_client.py