code: def test_format_config(cfg):
      cfg_text = _format_config(cfg, ConfigSummary())
      lines = cfg_text.split("\n")
      assert lines[0].startswith("Configuration")
      assert " a = 0" in lines[1]
      assert " b = {}" in lines[2]
      assert " c:" in lines[3]
      assert " cA = 3" in lines[4]
      assert " cB = 4" in lines[5]
      assert " cC:" in lines[6]
      assert " cC1 = 6" in lines[7]
      assert " d:" in lines[8]
      assert " dA = 8" in lines[9]
  
imports: import os
  import sys
  import tempfile
  import pprint
  import json
  from collections import OrderedDict
  import pytest
  from sacred import Ingredient, Experiment
  from sacred.commands import COLOR_MODIFIED, ENDC, COLOR_DOC, COLOR_ADDED, COLOR_TYPECHANGED, ConfigEntry, PathEntry, _format_config, _format_entry, help_for_command, _iterate_marked, _format_named_configs, _format_named_config
  from sacred.config import ConfigScope
  from sacred.config.config_summary import ConfigSummary
  import sacred.optional
label_desc: Use image node_id 8 for calling a global function with example usage: test_format_config(cfg) without return types