def async_iter(self, items):
        """Helper function to create an async iterator from a list."""

        async def generator():
            for item in items:
                yield item

        return generator()
Helper function to create an async iterator from a list.
llama-index-integrations/llms/llama-index-llms-oci-data-science/tests/test_oci_data_science_client.py