def on_configparser_dumps(self, configparser, config, dictionary, **kwargs):
root_section = kwargs.pop("<STR_LIT:root>")<EOL>if not isinstance(root_section, str):<EOL><INDENT>root_section = config.__name__<EOL><DEDENT>delimiter = kwargs.pop("<STR_LIT>", "<STR_LIT::>")<EOL>if delimiter in root_section:<EOL><INDENT>warnings.warn(<EOL>f"<STR_LIT>"<EOL>f"<STR_LIT>"<EOL>)<EOL><DEDENT>try:<EOL><INDENT>return INIParser.from_dict(<EOL>dictionary,<EOL>root_section=root_section,<EOL>delimiter=kwargs.pop("<STR_LIT>", "<STR_LIT::>"),<EOL>empty_sections=kwargs.pop("<STR_LIT>", False),<EOL>).to_ini()<EOL><DEDENT>except ValueError:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>
The :mod:`configparser` dumps method.

        :param module configparser: The ``configparser`` module
        :param class config: The instance's config class
        :param dict dictionary: The dictionary instance to serialize
        :param str root: The top-level section of the ini file,
            defaults to ``config.__name__``, optional
        :param str delimiter: The delimiter character used for representing nested
            dictionaries, defaults to ":", optional
        :return: The ini serialization of the given ``dictionary``
        :rtype: str