code: def test_from_dict_with_default_function():
      data = {
          "type": "haystack.testing.sample_components.accumulate.Accumulate",
          "init_parameters": {
              "function": "haystack.testing.sample_components.accumulate._default_function"
          },
      }
      accumulate = Accumulate.from_dict(data)
      assert accumulate.function == _default_function
  
file_path: haystack/test/core/sample_components/test_accumulate.py
imports: from haystack.testing.sample_components.accumulate import Accumulate, _default_function
label_desc: Use image node_id 5 for calling a global function with example usage: test_from_dict_with_default_function() without return types