<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_lexer_from_mime_type(self, mime, **options):
 """ Sets the pygments lexer from mime type. :param mime: mime type :param options: optional addtional options. """

        self._lexer = get_lexer_for_mimetype(mime, **options)
        _logger().debug('lexer for mimetype (%s): %r', mime, self._lexer)