code: def test_from_function_with_empty_name():
      content = "Function call"
      message = ChatMessage.from_function(content, "")
      assert message.content == content
      assert message.name == ""
  
file_path: haystack/test/dataclasses/test_chat_message.py
imports: import pytest
  from transformers import AutoTokenizer
  from haystack.dataclasses import ChatMessage, ChatRole
label_desc: Use image node_id 5 for calling a global function with example usage: test_from_function_with_empty_name() without return types