code: def test_ingredient_config():
      m = Ingredient("somemod")
  
      @m.config
      def cfg():
          a = 5
          b = "foo"
  
      assert len(m.configurations) == 1
      cfg = m.configurations[0]
      assert isinstance(cfg, ConfigScope)
      assert cfg() == {"a": 5, "b": "foo"}
  
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 1 for calling a global function with example usage: test_ingredient_config() without return types