code: def save_config(_config, _log, config_filename="config.json"):
      """
      Store the updated configuration in a file.
  
      By default uses the filename "config.json", but that can be changed by
      setting the config_filename config entry.
      """
      # Copy the config to make it mutable
      _config = copy.deepcopy(_config)
      if "config_filename" in _config:
          del _config["config_filename"]
      _log.info('Saving config to "{}"'.format(config_filename))
      save_config_file(flatten(_config), config_filename)
  
file_path: sacred/sacred/commands.py
imports: import copy
  import pprint
  import pydoc
  import re
  from collections import namedtuple, OrderedDict
  from colorama import Fore, Style
  from sacred.config import save_config_file
  from sacred.serializer import flatten
  from sacred.utils import PATHCHANGE, iterate_flattened_separately
label_desc: Use image node_id 7 for calling a global function with example usage: save_config(_config, _log, config_filename) without return types