def test_del(self):
        """Ensures that __del__ method closes the client."""
        client = Client(
            endpoint=self.endpoint,
            auth=self.auth_mock,
            retries=self.retries,
            backoff_factor=self.backoff_factor,
            timeout=self.timeout,
        )
        client.close = Mock()
        client.__del__()  # Manually invoke __del__
        client.close.assert_called_once()
Ensures that __del__ method closes the client.
llama-index-integrations/llms/llama-index-llms-oci-data-science/tests/test_oci_data_science_client.py