code: def _format_named_config(indent, path, named_config):
      indent = " " * indent
      assign = path
      if (
          hasattr(named_config, "__doc__")
          and named_config.__doc__ is not None
      ):
          doc_string = named_config.__doc__
          if doc_string.strip().count("\n") == 0:
              assign += (
                  COLOR_DOC
                  + "   # {}".format(doc_string.strip())
                  + ENDC
              )
          else:
              doc_string = doc_string.replace("\n", "\n" + indent)
              assign += (
                  COLOR_DOC
                  + '\n{}"""{}"""'.format(indent + "  ", doc_string)
                  + ENDC
              )
      return indent + assign
  
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 2 for calling a global function with example usage: _format_named_config(indent, path, named_config) and returns: unknown