code: def test_captured_function_call_doesnt_modify_kwargs():
      def foo(a, _log):
          if _log is not None:
              return a
  
      cf = create_captured_function(foo)
      cf.logger = mock.MagicMock()
      cf.run = mock.MagicMock()
  
      d = {"a": 7}
      assert cf(**d) == 7
      assert d == {"a": 7}
  
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 8 for calling a global function with example usage: test_captured_function_call_doesnt_modify_kwargs() and returns: a