code: def test_captured_function_magic_config_argument():
      def foo(_config):
          return _config
  
      cf = create_captured_function(foo)
      cf.logger = mock.MagicMock()
      cf.config = {"a": 2, "b": 2}
  
      assert cf() == cf.config
  
file_path: sacred/tests/test_config/test_captured_functions.py
imports: import datetime
  import mock
  import random
  import sacred.optional
  from sacred.config.captured_function import create_captured_function
  from sacred.settings import SETTINGS
label_desc: Use image node_id 6 for calling a global function with example usage: test_captured_function_magic_config_argument() and returns: _config