code: def dump_to_string(self, cnf, **kwargs):
          
          stream = anyconfig.compat.StringIO()
          self.dump_to_stream(cnf, stream, **kwargs)
          return stream.getvalue()
docs: Dump config 'cnf' to a string.
  
          :param cnf: Configuration data to dump
          :param kwargs: optional keyword parameters to be sanitized :: dict
  
          :return: Dict-like object holding config parameters