code: def test_accumulate_default():
      component = Accumulate()
      results = component.run(value=10)
      assert results == {"value": 10}
      assert component.state == 10
  
      results = component.run(value=1)
      assert results == {"value": 11}
      assert component.state == 11
  
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 7 for calling a global function with example usage: test_accumulate_default() without return types