code: def test_accumulate_callable():
      component = Accumulate(function=my_subtract)
  
      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 8 for calling a global function with example usage: test_accumulate_callable() without return types