def test_conversion(self):
        """Ensures an  message dict is converted to ChatMessage."""
        message_dict = {
            "role": "assistant",
            "content": "Hello!",
            "tool_calls": [{"name": "tool1", "arguments": "arg1"}],
        }
        expected_result = ChatMessage(
            role="assistant",
            content="Hello!",
            additional_kwargs={"tool_calls": [{"name": "tool1", "arguments": "arg1"}]},
        )
        result = _from_message_dict(message_dict)
        assert result == expected_result
Ensures an  message dict is converted to ChatMessage.
llama-index-integrations/llms/llama-index-llms-oci-data-science/tests/test_oci_data_science_utils.py