code: def test_ingredient_captured_functions():
      m = Ingredient("somemod")
  
      @m.capture
      def get_answer(b):
          return b
  
      assert len(m.captured_functions) == 1
      f = m.captured_functions[0]
      assert f == get_answer
  
file_path: sacred/tests/test_modules.py
imports: from sacred.config.config_scope import ConfigScope
  from sacred.experiment import Experiment, Ingredient
label_desc: Use image node_id 2 for calling a global function with example usage: test_ingredient_captured_functions() and returns: b