code: def test_gather_named_configs(ing):
      ing2 = Ingredient("ing2", ingredients=[ing])
  
      @ing.named_config
      def named_config1():
          pass
  
      @ing2.named_config
      def named_config2():
          """named config with doc"""
          pass
  
      named_configs = list(ing2.gather_named_configs())
      assert ("ing2.named_config2", named_config2) in named_configs
      assert ("tickle.named_config1", named_config1) in named_configs
  
imports: import os
  import pytest
  import tempfile
  from sacred.config import ConfigScope, ConfigDict
  from sacred.dependencies import Source, PackageDependency
  from sacred.experiment import Experiment
  from sacred.ingredient import Ingredient
  from sacred.utils import CircularDependencyError
  from sacred.serializer import json
label_desc: Use image node_id 31 for calling a global function with example usage: test_gather_named_configs(ing) without return types