          logger.debug("Inserting item: (section: '%s', item: '%s', default: '%s', helptext: '%s', "
                       "config: '%s')", section, item, default, option["helptext"], config)
          config = self.config if config is None else config
          helptext = option["helptext"]
          helptext = self.format_help(helptext, is_section=False)
          config.set(section, helptext)
          config.set(section, item, str(default))
 
</s> remove         """ Return a config item in it's correct format """
 </s> add         """ Return a config item in it's correct format.

        Parameters
        ----------
        section: str
            The configuration section currently being processed
        option: str
            The configuration option currently being processed

        Returns
        -------
        varies
            The selected configuration option in the correct data format
        """ </s> remove                 logger.debug("Adding option: (item: '%s', opt: '%s'", item, opt)
 </s> add                 logger.debug("Adding option: (item: '%s', opt: '%s')", item, opt) </s> remove         helptext = '# {}'.format(helptext.replace("\n", "\n# "))
 </s> add         formatted = ""
        for hlp in helptext.split("\n"):
            subsequent_indent = "\t\t" if hlp.startswith("\t") else ""
            hlp = f"\t- {hlp[1:].strip()}" if hlp.startswith("\t") else hlp
            formatted += textwrap.fill(hlp,
                                       100,
                                       tabsize=4,
                                       subsequent_indent=subsequent_indent) + "\n"
        helptext = '# {}'.format(formatted[:-1].replace("\n", "\n# "))  # Strip last newline
        config.optionxform = str
          logger.debug("Inserting item: (section: '%s', item: '%s', default: '%s', helptext: '%s', "
                       "config: '%s')", section, item, default, option["helptext"], config)
          config = self.config if config is None else config
        config.optionxform = str
          helptext = option["helptext"]
          helptext = self.format_help(helptext, is_section=False)
          config.set(section, helptext)
          config.set(section, item, str(default))
keep keep add keep keep keep keep
 scripts.train - Add freeze weights option
lib.config:
  - Better formatting for .ini files
  - Support multi-select options
gui - Add support for multi-select config items 
lib/config.py