code: def _format_config(cfg, config_mods):
      lines = ["Configuration " + LEGEND + ":"]
      for path, entry in _iterate_marked(cfg, config_mods):
          indent = 2 + 2 * path.count(".")
          lines.append(_format_entry(indent, entry))
      return "\n".join(lines)
  
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 10 for calling a global function with example usage: _format_config(cfg, config_mods) and returns: str