def write_config_file(self, f, comments):
if comments:<EOL><INDENT>f.write("<STR_LIT>")<EOL>f.write("<STR_LIT>")<EOL>f.write("<STR_LIT:#>".join(self.get_representation()) + "<STR_LIT:\n>")<EOL>f.write("<STR_LIT>")<EOL><DEDENT>f.write("<STR_LIT:[>" + self._name + "<STR_LIT>")<EOL>if self._desc and comments:<EOL><INDENT>f.write("<STR_LIT>")<EOL>for i in self._desc.split('<STR_LIT:\n>'):<EOL><INDENT>f.write("<STR_LIT>")<EOL>f.write(i)<EOL>f.write("<STR_LIT:\n>")<EOL><DEDENT>f.write("<STR_LIT:\n>")<EOL><DEDENT>
This method write a sample file, with attributes, descriptions,
        sample values, required flags, using the configuration object
        properties.