def _get_default_writer(ext):
_default_writers = {'<STR_LIT>': '<STR_LIT>', '<STR_LIT>': '<STR_LIT>', '<STR_LIT>': '<STR_LIT>'}<EOL>try:<EOL><INDENT>import xlsxwriter  <EOL>_default_writers['<STR_LIT>'] = '<STR_LIT>'<EOL><DEDENT>except ImportError:<EOL><INDENT>pass<EOL><DEDENT>return _default_writers[ext]<EOL>
Return the default writer for the given extension.

Parameters
----------
ext : str
    The excel file extension for which to get the default engine.

Returns
-------
str
    The default engine for the extension.