code: def test_ingredient_command():
      m = Ingredient("somemod")
  
      m.add_config(a=42, b="foo{}")
  
      @m.command
      def transmogrify(a, b):
          return b.format(a)
  
      assert "transmogrify" in m.commands
      assert m.commands["transmogrify"] == transmogrify
      ex = Experiment("foo", ingredients=[m])
  
      assert ex.run("somemod.transmogrify").result == "foo42"
  
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 3 for calling a global function with example usage: test_ingredient_command() and returns: b