def test_empty_sequence(self):
        """Ensures the function works with an empty sequence."""
        messages = []
        expected_result = []
        result = _to_message_dicts(messages)
        assert result == expected_result
Ensures the function works with an empty sequence.
llama-index-integrations/llms/llama-index-llms-oci-data-science/tests/test_oci_data_science_utils.py